Beispiel #1
0
        BlockNode ParseBlock()
        {
            List <VarDecl>        varDeclarations = ParseVarDecl();
            CompoundStatementNode statementList   = ParseCompoundStatement();

            return(new BlockNode(varDeclarations, statementList));
        }
Beispiel #2
0
 public BlockNode(List <VarDecl> varDeclarations, CompoundStatementNode statementList)
 {
     VarDeclarations = varDeclarations;
     StatementList   = statementList;
 }