@@ -1253,6 +1253,30 @@ xx_for_statement(R) ::= FOR IDENTIFIER(K) COMMA IDENTIFIER(V) IN REVERSE xx_comm
1253
1253
xx_ret_for_statement(&R, &E, K, V, 1, &L, status->scanner_state);
1254
1254
}
1255
1255
1256
+ xx_for_statement(R) ::= FOR PARENTHESES_OPEN IDENTIFIER(V) IN xx_common_expr(E) PARENTHESES_CLOSE BRACKET_OPEN xx_statement_list(L) BRACKET_CLOSE . {
1257
+ xx_ret_for_statement(&R, &E, NULL, V, 0, &L, status->scanner_state);
1258
+ }
1259
+
1260
+ xx_for_statement(R) ::= FOR PARENTHESES_OPEN IDENTIFIER(V) IN xx_common_expr(E) PARENTHESES_CLOSE BRACKET_OPEN BRACKET_CLOSE . {
1261
+ xx_ret_for_statement(&R, &E, NULL, V, 0, NULL, status->scanner_state);
1262
+ }
1263
+
1264
+ xx_for_statement(R) ::= FOR PARENTHESES_OPEN IDENTIFIER(V) IN REVERSE xx_common_expr(E) PARENTHESES_CLOSE BRACKET_OPEN xx_statement_list(L) BRACKET_CLOSE . {
1265
+ xx_ret_for_statement(&R, &E, NULL, V, 1, &L, status->scanner_state);
1266
+ }
1267
+
1268
+ xx_for_statement(R) ::= FOR PARENTHESES_OPEN IDENTIFIER(K) COMMA IDENTIFIER(V) IN xx_common_expr(E) PARENTHESES_CLOSE BRACKET_OPEN xx_statement_list(L) BRACKET_CLOSE . {
1269
+ xx_ret_for_statement(&R, &E, K, V, 0, &L, status->scanner_state);
1270
+ }
1271
+
1272
+ xx_for_statement(R) ::= FOR PARENTHESES_OPEN IDENTIFIER(K) COMMA IDENTIFIER(V) IN xx_common_expr(E) PARENTHESES_CLOSE BRACKET_OPEN BRACKET_CLOSE . {
1273
+ xx_ret_for_statement(&R, &E, K, V, 0, NULL, status->scanner_state);
1274
+ }
1275
+
1276
+ xx_for_statement(R) ::= FOR PARENTHESES_OPEN IDENTIFIER(K) COMMA IDENTIFIER(V) IN REVERSE xx_common_expr(E) PARENTHESES_CLOSE BRACKET_OPEN xx_statement_list(L) BRACKET_CLOSE . {
1277
+ xx_ret_for_statement(&R, &E, K, V, 1, &L, status->scanner_state);
1278
+ }
1279
+
1256
1280
xx_let_statement(R) ::= LET xx_let_assignments(A) DOTCOMMA . {
1257
1281
xx_ret_let_statement(&R, &A, status->scanner_state);
1258
1282
}
0 commit comments