Changeset 1a6a6f2 for src/Parser
- Timestamp:
- Aug 19, 2021, 4:04:43 PM (5 years ago)
- Branches:
- ADT, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, pthread-emulation, qualifiedEnum, stuck-waitfor-destruct
- Children:
- d8f8d08
- Parents:
- ed4d7c1 (diff), 315e5e3 (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) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/ParseNode.h
red4d7c1 r1a6a6f2 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
red4d7c1 r1a6a6f2 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
red4d7c1 r1a6a6f2 10 10 // Created On : Sat Sep 1 20:22:55 2001 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Tue Jul 20 22:03:04 202113 // Update Count : 503 112 // Last Modified On : Sun Aug 8 09:14:44 2021 13 // Update Count : 5038 14 14 // 15 15 … … 185 185 type = new ExpressionNode( new CastExpr( maybeMoveBuild<Expression>(type), new BasicType( Type::Qualifiers(), BasicType::SignedInt ) ) ); 186 186 } // if 187 // type = new ExpressionNode( build_func( new ExpressionNode( build_varref( new string( "__for_control_index_constraints__" ) ) ), type ) ); 187 188 return new ForCtrl( 188 189 distAttr( DeclarationNode::newTypeof( type, true ), DeclarationNode::newName( index )->addInitializer( new InitializerNode( start ) ) ), … … 1346 1347 mutex_statement: 1347 1348 MUTEX '(' argument_expression_list_opt ')' statement 1348 { SemanticError( yylloc, "Mutex statement is currently unimplemented." ); $$ = nullptr; }1349 { $$ = new StatementNode( build_mutex( $3, $5 ) ); } 1349 1350 ; 1350 1351
Note:
See TracChangeset
for help on using the changeset viewer.