@@ -1253,6 +1253,30 @@ xx_for_statement(R) ::= FOR IDENTIFIER(K) COMMA IDENTIFIER(V) IN REVERSE xx_comm
12531253 xx_ret_for_statement(&R, &E, K, V, 1, &L, status->scanner_state);
12541254}
12551255
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+
12561280xx_let_statement(R) ::= LET xx_let_assignments(A) DOTCOMMA . {
12571281 xx_ret_let_statement(&R, &A, status->scanner_state);
12581282}
0 commit comments