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