Changes in src/Parser/parser.yy [24c3b67:c453ac4]
- File:
-
- 1 edited
-
src/Parser/parser.yy (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/parser.yy
r24c3b67 rc453ac4 10 10 // Created On : Sat Sep 1 20:22:55 2001 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Feb 15 17:12:31 201813 // Update Count : 300612 // Last Modified On : Thu Dec 21 11:32:56 2017 13 // Update Count : 2996 14 14 // 15 15 … … 482 482 { $$ = new ExpressionNode( new StmtExpr( dynamic_cast< CompoundStmt * >(maybeMoveBuild< Statement >($2) ) ) ); } 483 483 | type_name '.' no_attr_identifier // CFA, nested type 484 { throw SemanticError( yylloc, "Qualified names are currently unimplemented." ); $$ = nullptr; }// FIX ME484 { throw SemanticError("Qualified names are currently unimplemented."); $$ = nullptr; } // FIX ME 485 485 | 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 499 487 ; 500 488 … … 779 767 | unary_expression assignment_operator assignment_expression 780 768 { $$ = new ExpressionNode( build_binary_val( $2, $1, $3 ) ); } 781 | unary_expression '=' '{' initializer_list comma_opt '}' // FIX ME782 { $$ = nullptr; }783 769 ; 784 770 … … 1064 1050 | RETURN comma_expression_opt ';' 1065 1051 { $$ = new StatementNode( build_return( $2 ) ); } 1066 | RETURN '{' initializer_list comma_opt '}' // FIX ME1067 { $$ = nullptr; }1068 1052 | THROW assignment_expression_opt ';' // handles rethrow 1069 1053 { $$ = new StatementNode( build_throw( $2 ) ); } … … 1084 1068 mutex_statement: 1085 1069 MUTEX '(' argument_expression_list ')' statement 1086 { throw SemanticError( yylloc, "Mutex statement is currently unimplemented."); $$ = nullptr; } // FIX ME1070 { throw SemanticError("Mutex statement is currently unimplemented."); $$ = nullptr; } // FIX ME 1087 1071 ; 1088 1072 … … 1305 1289 static_assert: 1306 1290 STATICASSERT '(' constant_expression ',' string_literal ')' ';' // C11 1307 { throw SemanticError( yylloc, "Static assert is currently unimplemented."); $$ = nullptr; } // FIX ME1291 { throw SemanticError("Static assert is currently unimplemented."); $$ = nullptr; } // FIX ME 1308 1292 1309 1293 // C declaration syntax is notoriously confusing and error prone. Cforall provides its own type, variable and function … … 2393 2377 { 2394 2378 linkageStack.push( linkage ); // handle nested extern "C"/"Cforall" 2395 linkage = LinkageSpec::linkageUpdate( yylloc,linkage, $2 );2379 linkage = LinkageSpec::linkageUpdate( linkage, $2 ); 2396 2380 } 2397 2381 '{' external_definition_list_opt '}'
Note:
See TracChangeset
for help on using the changeset viewer.