Exemplo n.º 1
0
        BlockNode ParseBlock()
        {
            List <VarDecl>        varDeclarations = ParseVarDecl();
            CompoundStatementNode statementList   = ParseCompoundStatement();

            return(new BlockNode(varDeclarations, statementList));
        }
Exemplo n.º 2
0
 public BlockNode(List <VarDecl> varDeclarations, CompoundStatementNode statementList)
 {
     VarDeclarations = varDeclarations;
     StatementList   = statementList;
 }