CompoundStatementNode CompoundStatement() { Eat(PascalTerms.Begin); var nodes = StatementList(); Eat(PascalTerms.End); var root = new CompoundStatementNode(); root.Nodes = nodes.ToList(); return(root); }
public BlockNode(IList <Node> declarations, CompoundStatementNode compoundStatement) { Declarations = declarations; CompoundStatement = compoundStatement; }