Changeset c786e1d
- Timestamp:
- May 29, 2019, 9:09:25 PM (5 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 6054b18
- Parents:
- eba615c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/parser.yy
reba615c rc786e1d 10 10 // Created On : Sat Sep 1 20:22:55 2001 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed May 15 21:25:27 201913 // Update Count : 4 29612 // Last Modified On : Tue May 28 17:06:37 2019 13 // Update Count : 4354 14 14 // 15 15 … … 278 278 %token OTYPE FTYPE DTYPE TTYPE TRAIT // CFA 279 279 %token SIZEOF OFFSETOF 280 // %token SUSPEND RESUME // CFA 280 281 %token ATTRIBUTE EXTENSION // GCC 281 282 %token IF ELSE SWITCH CASE DEFAULT DO WHILE FOR BREAK CONTINUE GOTO RETURN … … 482 483 %precedence '}' 483 484 %precedence '(' 485 486 // %precedence RESUME 487 // %precedence '{' 488 // %precedence ')' 484 489 485 490 %locations // support location tracking for error messages … … 599 604 $$ = new ExpressionNode( $5 ); 600 605 } 606 // | RESUME '(' comma_expression ')' 607 // { SemanticError( yylloc, "Resume expression is currently unimplemented." ); $$ = nullptr; } 608 // | RESUME '(' comma_expression ')' compound_statement 609 // { SemanticError( yylloc, "Resume expression is currently unimplemented." ); $$ = nullptr; } 601 610 ; 602 611 … … 1263 1272 | RETURN comma_expression_opt ';' 1264 1273 { $$ = new StatementNode( build_return( $2 ) ); } 1265 | RETURN '{' initializer_list_opt comma_opt '}' 1274 | RETURN '{' initializer_list_opt comma_opt '}' ';' 1266 1275 { 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; } 1267 1280 | THROW assignment_expression_opt ';' // handles rethrow 1268 1281 { $$ = new StatementNode( build_throw( $2 ) ); } … … 2158 2171 2159 2172 bit_subrange_size: 2160 ':' constant_expression2173 ':' assignment_expression 2161 2174 { $$ = $2; } 2162 2175 ;
Note: See TracChangeset
for help on using the changeset viewer.