Changeset 8a1d95af for src/Parser
- Timestamp:
- Aug 14, 2021, 8:48:49 AM (4 years ago)
- Branches:
- ADT, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, pthread-emulation, qualifiedEnum
- Children:
- f79ee0d
- Parents:
- c99a0d1 (diff), 6d63c14 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - Location:
- src/Parser
- Files:
-
- 3 edited
-
ParseNode.h (modified) (1 diff)
-
StatementNode.cc (modified) (1 diff)
-
parser.yy (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/ParseNode.h
rc99a0d1 r8a1d95af 437 437 WaitForStmt * build_waitfor_timeout( ExpressionNode * timeout, StatementNode * stmt, ExpressionNode * when, StatementNode * else_stmt, ExpressionNode * else_when ); 438 438 Statement * build_with( ExpressionNode * exprs, StatementNode * stmt ); 439 Statement * build_mutex( ExpressionNode * exprs, StatementNode * stmt ); 439 440 440 441 //############################################################################## -
src/Parser/StatementNode.cc
rc99a0d1 r8a1d95af 374 374 } // build_directive 375 375 376 Statement * build_mutex( ExpressionNode * exprs, StatementNode * stmt ) { 377 std::list< Expression * > expList; 378 buildMoveList( exprs, expList ); 379 Statement * body = maybeMoveBuild<Statement>( stmt ); 380 return new MutexStmt( body, expList ); 381 } // build_mutex 382 376 383 // Local Variables: // 377 384 // tab-width: 4 // -
src/Parser/parser.yy
rc99a0d1 r8a1d95af 1347 1347 mutex_statement: 1348 1348 MUTEX '(' argument_expression_list_opt ')' statement 1349 { SemanticError( yylloc, "Mutex statement is currently unimplemented." ); $$ = nullptr; }1349 { $$ = new StatementNode( build_mutex( $3, $5 ) ); } 1350 1350 ; 1351 1351
Note:
See TracChangeset
for help on using the changeset viewer.