Exemplo n.º 1
0
        //<S> ::= <Declarations> startup '(' <DeclaringParameters> ')' <Commands> end startup <Declarations> GameLoop '(' <DeclaringParameters> ')' <Commands> end GameLoop <Declarations>
        public StartupStucture(ParserContext parserContext, Declarations declarations, DeclaringParameters declaringParameters,
                               Commands commands, Declarations declarations2, DeclaringParameters declaringParameters2, Commands commands2,
                               Declarations declarations3) : base(parserContext)
        {
            this.parserContext        = parserContext;
            this.Declarations         = declarations;
            this.DeclaringParameters  = declaringParameters;
            this.Commands             = commands;
            this.Declarations2        = declarations2;
            this.DeclaringParameters2 = declaringParameters2;
            this.Commands2            = commands2;
            this.Declarations3        = declarations3;

            VisitList.Remove(VisitList.Last());


            AddChild(declarations);
            AddChild(declaringParameters);
            AddChild(commands);
            AddChild(declarations2);
            AddChild(declaringParameters2);
            AddChild(commands2);
            AddChild(declarations3);
        }
Exemplo n.º 2
0
 //<Declarations> ::= <MethodDeclaration> <Declarations>
 public Declarations(ParserContext context, MethodDeclaration methodDeclaration, Declarations declarations) : base(context)
 {
     this.MethodDeclarationNode = methodDeclaration;
     this.DeclarationsNode      = declarations;
     NodeType = NodeTypes.MethodDeclarationDeclarations;
 }