Exemplo n.º 1
0
        CompoundStatementNode CompoundStatement()
        {
            Eat(PascalTerms.Begin);
            var nodes = StatementList();

            Eat(PascalTerms.End);
            var root = new CompoundStatementNode();

            root.Nodes = nodes.ToList();
            return(root);
        }
Exemplo n.º 2
0
 public BlockNode(IList <Node> declarations, CompoundStatementNode compoundStatement)
 {
     Declarations      = declarations;
     CompoundStatement = compoundStatement;
 }