Changes in src/Parser/parser.yy [c786e1d:553772b]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/parser.yy
rc786e1d r553772b 10 10 // Created On : Sat Sep 1 20:22:55 2001 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Tue May 28 17:06:37 201913 // Update Count : 4 35412 // Last Modified On : Wed May 15 21:25:27 2019 13 // Update Count : 4296 14 14 // 15 15 … … 278 278 %token OTYPE FTYPE DTYPE TTYPE TRAIT // CFA 279 279 %token SIZEOF OFFSETOF 280 // %token SUSPEND RESUME // CFA281 280 %token ATTRIBUTE EXTENSION // GCC 282 281 %token IF ELSE SWITCH CASE DEFAULT DO WHILE FOR BREAK CONTINUE GOTO RETURN … … 483 482 %precedence '}' 484 483 %precedence '(' 485 486 // %precedence RESUME487 // %precedence '{'488 // %precedence ')'489 484 490 485 %locations // support location tracking for error messages … … 604 599 $$ = new ExpressionNode( $5 ); 605 600 } 606 // | RESUME '(' comma_expression ')'607 // { SemanticError( yylloc, "Resume expression is currently unimplemented." ); $$ = nullptr; }608 // | RESUME '(' comma_expression ')' compound_statement609 // { SemanticError( yylloc, "Resume expression is currently unimplemented." ); $$ = nullptr; }610 601 ; 611 602 … … 1272 1263 | RETURN comma_expression_opt ';' 1273 1264 { $$ = new StatementNode( build_return( $2 ) ); } 1274 | RETURN '{' initializer_list_opt comma_opt '}' ';'1265 | RETURN '{' initializer_list_opt comma_opt '}' 1275 1266 { SemanticError( yylloc, "Initializer return is currently unimplemented." ); $$ = nullptr; } 1276 // | SUSPEND ';'1277 // { SemanticError( yylloc, "Suspend expression is currently unimplemented." ); $$ = nullptr; }1278 // | SUSPEND compound_statement ';'1279 // { SemanticError( yylloc, "Suspend expression is currently unimplemented." ); $$ = nullptr; }1280 1267 | THROW assignment_expression_opt ';' // handles rethrow 1281 1268 { $$ = new StatementNode( build_throw( $2 ) ); } … … 2171 2158 2172 2159 bit_subrange_size: 2173 ':' assignment_expression2160 ':' constant_expression 2174 2161 { $$ = $2; } 2175 2162 ;
Note: See TracChangeset
for help on using the changeset viewer.