Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/parser.yy

    r24c3b67 rc453ac4  
    1010// Created On       : Sat Sep  1 20:22:55 2001
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Thu Feb 15 17:12:31 2018
    13 // Update Count     : 3006
     12// Last Modified On : Thu Dec 21 11:32:56 2017
     13// Update Count     : 2996
    1414//
    1515
     
    482482                { $$ = new ExpressionNode( new StmtExpr( dynamic_cast< CompoundStmt * >(maybeMoveBuild< Statement >($2) ) ) ); }
    483483        | type_name '.' no_attr_identifier                                      // CFA, nested type
    484                 { throw SemanticError( yylloc, "Qualified names are currently unimplemented." ); $$ = nullptr; } // FIX ME
     484                { throw SemanticError("Qualified names are currently unimplemented."); $$ = nullptr; }                                                          // FIX ME
    485485        | type_name '.' '[' push field_list pop ']'                     // CFA, nested type / tuple field selector
    486                 { throw SemanticError( yylloc, "Qualified names are currently unimplemented." ); $$ = nullptr; } // FIX ME
    487         | GENERIC '(' assignment_expression ',' generic_assoc_list ')' // C11
    488                 { throw SemanticError( yylloc, "_Generic is currently unimplemented." ); $$ = nullptr; } // FIX ME
    489         ;
    490 
    491 generic_assoc_list:                                                                             // C11
    492         | generic_association
    493         | generic_assoc_list ',' generic_association
    494         ;
    495 
    496 generic_association:                                                                    // C11
    497         type_no_function ':' assignment_expression
    498         | DEFAULT ':' assignment_expression
     486                { throw SemanticError("Qualified names are currently unimplemented."); $$ = nullptr; }                                                          // FIX ME
    499487        ;
    500488
     
    779767        | unary_expression assignment_operator assignment_expression
    780768                { $$ = new ExpressionNode( build_binary_val( $2, $1, $3 ) ); }
    781         | unary_expression '=' '{' initializer_list comma_opt '}' // FIX ME
    782                 { $$ = nullptr; }
    783769        ;
    784770
     
    10641050        | RETURN comma_expression_opt ';'
    10651051                { $$ = new StatementNode( build_return( $2 ) ); }
    1066         | RETURN '{' initializer_list comma_opt '}'                     // FIX ME
    1067                 { $$ = nullptr; }
    10681052        | THROW assignment_expression_opt ';'                           // handles rethrow
    10691053                { $$ = new StatementNode( build_throw( $2 ) ); }
     
    10841068mutex_statement:
    10851069        MUTEX '(' argument_expression_list ')' statement
    1086                 { throw SemanticError( yylloc, "Mutex statement is currently unimplemented." ); $$ = nullptr; } // FIX ME
     1070                { throw SemanticError("Mutex statement is currently unimplemented."); $$ = nullptr; } // FIX ME
    10871071        ;
    10881072
     
    13051289static_assert:
    13061290        STATICASSERT '(' constant_expression ',' string_literal ')' ';' // C11
    1307                 { throw SemanticError( yylloc, "Static assert is currently unimplemented." ); $$ = nullptr; }   // FIX ME
     1291                { throw SemanticError("Static assert is currently unimplemented."); $$ = nullptr; }     // FIX ME
    13081292
    13091293// C declaration syntax is notoriously confusing and error prone. Cforall provides its own type, variable and function
     
    23932377                {
    23942378                        linkageStack.push( linkage );                           // handle nested extern "C"/"Cforall"
    2395                         linkage = LinkageSpec::linkageUpdate( yylloc, linkage, $2 );
     2379                        linkage = LinkageSpec::linkageUpdate( linkage, $2 );
    23962380                }
    23972381          '{' external_definition_list_opt '}'
Note: See TracChangeset for help on using the changeset viewer.