Changeset a97b9ed for src/Parser
- Timestamp:
- Oct 16, 2023, 8:09:51 AM (2 years ago)
- Branches:
- master
- Children:
- 2bf46a5, 54e59dd, 61e5d99
- Parents:
- 946a6e4 (diff), 8cbe732 (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
-
StatementNode.cc (modified) (1 diff)
-
StatementNode.h (modified) (1 diff)
-
parser.yy (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/StatementNode.cc
r946a6e4 ra97b9ed 498 498 } // build_mutex 499 499 500 ast::Stmt * build_corun( const CodeLocation & location, StatementNode * stmt ) { 501 ast::Stmt * body = maybeMoveBuild( stmt ); 502 return new ast::CorunStmt( location, body ); 503 } // build_corun 504 500 505 // Local Variables: // 501 506 // tab-width: 4 // -
src/Parser/StatementNode.h
r946a6e4 ra97b9ed 105 105 ast::Stmt * build_with( const CodeLocation &, ExpressionNode * exprs, StatementNode * stmt ); 106 106 ast::Stmt * build_mutex( const CodeLocation &, ExpressionNode * exprs, StatementNode * stmt ); 107 ast::Stmt * build_corun( const CodeLocation &, StatementNode * stmt ); -
src/Parser/parser.yy
r946a6e4 ra97b9ed 1721 1721 corun_statement: 1722 1722 CORUN statement 1723 { SemanticError( yylloc, "corun statement is currently unimplemented." ); $$ = nullptr; }1723 { $$ = new StatementNode( build_corun( yylloc, $2 ) ); } 1724 1724 ; 1725 1725
Note:
See TracChangeset
for help on using the changeset viewer.