Changeset 427854b for src/Parser/parser.yy
- Timestamp:
- Mar 2, 2020, 4:59:27 PM (3 years ago)
- Branches:
- arm-eh, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- dfa4360
- Parents:
- 37cdd97
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/parser.yy
r37cdd97 r427854b 1261 1261 { SemanticError( yylloc, "Initializer return is currently unimplemented." ); $$ = nullptr; } 1262 1262 | SUSPEND ';' 1263 { SemanticError( yylloc, "Suspend expression is currently unimplemented." ); $$ = nullptr; }1263 { $$ = new StatementNode( build_suspend( nullptr ) ); } 1264 1264 | SUSPEND compound_statement ';' 1265 { SemanticError( yylloc, "Suspend expression is currently unimplemented." ); $$ = nullptr; }1265 { $$ = new StatementNode( build_suspend( $2 ) ); } 1266 1266 | SUSPEND COROUTINE ';' 1267 { SemanticError( yylloc, "Suspend expression is currently unimplemented." ); $$ = nullptr; }1267 { $$ = new StatementNode( build_suspend( nullptr, SuspendStmt::Coroutine ) ); } 1268 1268 | SUSPEND COROUTINE compound_statement 1269 { SemanticError( yylloc, "Suspend expression is currently unimplemented." ); $$ = nullptr; }1269 { $$ = new StatementNode( build_suspend( $3, SuspendStmt::Coroutine ) ); } 1270 1270 | SUSPEND GENERATOR ';' 1271 { SemanticError( yylloc, "Suspend expression is currently unimplemented." ); $$ = nullptr; }1271 { $$ = new StatementNode( build_suspend( nullptr, SuspendStmt::Generator ) ); } 1272 1272 | SUSPEND GENERATOR compound_statement 1273 { SemanticError( yylloc, "Suspend expression is currently unimplemented." ); $$ = nullptr; }1273 { $$ = new StatementNode( build_suspend( $3, SuspendStmt::Generator ) ); } 1274 1274 | THROW assignment_expression_opt ';' // handles rethrow 1275 1275 { $$ = new StatementNode( build_throw( $2 ) ); } … … 2086 2086 aggregate_control: // CFA 2087 2087 GENERATOR 2088 { SemanticError( yylloc, "generator is currently unimplemented." ); $$ = AggregateDecl::NoAggregate; }2088 { yyy = true; $$ = AggregateDecl::Generator; } 2089 2089 | MONITOR GENERATOR 2090 2090 { SemanticError( yylloc, "monitor generator is currently unimplemented." ); $$ = AggregateDecl::NoAggregate; }
Note: See TracChangeset
for help on using the changeset viewer.