Example #1
0
        CompoundStatementNode CompoundStatement()
        {
            Eat(PascalTerms.Begin);
            var nodes = StatementList();

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

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