Changeset bf20567
- Timestamp:
- Feb 25, 2023, 11:01:28 AM (21 months ago)
- Branches:
- ADT, ast-experimental, master
- Children:
- be00a2d
- Parents:
- b1ad41f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/parser.yy
rb1ad41f rbf20567 10 10 // Created On : Sat Sep 1 20:22:55 2001 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Fri Feb 24 14:46:55202313 // Update Count : 598 312 // Last Modified On : Sat Feb 25 09:52:06 2023 13 // Update Count : 5986 14 14 // 15 15 … … 1173 1173 comma_expression_opt ';' 1174 1174 { $$ = new StatementNode( build_expr( $1 ) ); } 1175 | MUTEX '(' ')' comma_expression ';'1176 { $$ = new StatementNode( build_mutex( nullptr, new StatementNode( build_expr( $4 ) ) ) ); }1177 1175 ; 1178 1176 … … 1584 1582 ; 1585 1583 1586 // If MUTEX becomes a general qualifier, there are shift/reduce conflicts, so change syntax to "with mutex".1584 // If MUTEX becomes a general qualifier, there are shift/reduce conflicts, so possibly change syntax to "with mutex". 1587 1585 mutex_statement: 1588 MUTEX '(' argument_expression_list ')' statement 1589 { $$ = new StatementNode( build_mutex( $3, $5 ) ); } 1586 MUTEX '(' argument_expression_list_opt ')' statement 1587 { 1588 if ( ! $3 ) { SemanticError( yylloc, "mutex argument list cannot be empty." ); $$ = nullptr; } 1589 $$ = new StatementNode( build_mutex( $3, $5 ) ); 1590 } 1590 1591 ; 1591 1592
Note: See TracChangeset
for help on using the changeset viewer.