BlockNode ParseBlock() { List <VarDecl> varDeclarations = ParseVarDecl(); CompoundStatementNode statementList = ParseCompoundStatement(); return(new BlockNode(varDeclarations, statementList)); }
public BlockNode(List <VarDecl> varDeclarations, CompoundStatementNode statementList) { VarDeclarations = varDeclarations; StatementList = statementList; }