- Timestamp:
- Jun 29, 2018, 3:02:57 PM (6 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, no_list, persistent-indexer, pthread-emulation, qualifiedEnum
- Children:
- adb60242
- Parents:
- c5283ba (diff), 713926ca (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/parser.yy
rc5283ba r1f133dc 10 10 // Created On : Sat Sep 1 20:22:55 2001 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Sun Jun 24 10:41:10201813 // Update Count : 35 8712 // Last Modified On : Fri Jun 29 10:31:42 2018 13 // Update Count : 3596 14 14 // 15 15 … … 1136 1136 1137 1137 waitfor: 1138 WAITFOR '(' identifier ')' 1139 { 1140 $$ = new ExpressionNode( new NameExpr( *$3 ) ); 1141 delete $3; 1142 } 1143 | WAITFOR '(' identifier ',' argument_expression_list ')' 1144 { 1145 $$ = new ExpressionNode( new NameExpr( *$3 ) ); 1146 $$->set_last( $5 ); 1147 delete $3; 1148 } 1138 WAITFOR '(' cast_expression ')' 1139 { $$ = $3; } 1140 | WAITFOR '(' cast_expression ',' argument_expression_list ')' 1141 { $$ = (ExpressionNode *)$3->set_last( $5 ); } 1149 1142 ; 1150 1143 … … 1163 1156 { $$ = build_waitfor_timeout( nullptr, $3, $1 ); } 1164 1157 // "else" must be conditional after timeout or timeout is never triggered (i.e., it is meaningless) 1158 | when_clause_opt timeout statement WOR ELSE statement 1159 { SemanticError( yylloc, "else clause must be conditional after timeout or timeout never triggered." ); $$ = nullptr; } 1165 1160 | when_clause_opt timeout statement WOR when_clause ELSE statement 1166 1161 { $$ = build_waitfor_timeout( $2, $3, $1, $7, $5 ); }
Note: See TracChangeset
for help on using the changeset viewer.