Changes in / [1f133dc:c5283ba]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/parser.yy
r1f133dc rc5283ba 10 10 // Created On : Sat Sep 1 20:22:55 2001 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Fri Jun 29 10:31:42201813 // Update Count : 35 9612 // Last Modified On : Sun Jun 24 10:41:10 2018 13 // Update Count : 3587 14 14 // 15 15 … … 1136 1136 1137 1137 waitfor: 1138 WAITFOR '(' cast_expression ')' 1139 { $$ = $3; } 1140 | WAITFOR '(' cast_expression ',' argument_expression_list ')' 1141 { $$ = (ExpressionNode *)$3->set_last( $5 ); } 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 } 1142 1149 ; 1143 1150 … … 1156 1163 { $$ = build_waitfor_timeout( nullptr, $3, $1 ); } 1157 1164 // "else" must be conditional after timeout or timeout is never triggered (i.e., it is meaningless) 1158 | when_clause_opt timeout statement WOR ELSE statement1159 { SemanticError( yylloc, "else clause must be conditional after timeout or timeout never triggered." ); $$ = nullptr; }1160 1165 | when_clause_opt timeout statement WOR when_clause ELSE statement 1161 1166 { $$ = build_waitfor_timeout( $2, $3, $1, $7, $5 ); }
Note: See TracChangeset
for help on using the changeset viewer.