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

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

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