(KeywordToken[]) {{NULL, -1}},
(KeywordToken[]) {{NULL, -1}},
(KeywordToken[]) {
- {"if", 661},
- {"as", 659},
- {"in", 672},
+ {"if", 662},
+ {"as", 660},
+ {"in", 673},
{"or", 581},
{"is", 589},
{NULL, -1},
},
(KeywordToken[]) {
{"del", 616},
- {"def", 674},
- {"for", 671},
- {"try", 643},
+ {"def", 675},
+ {"for", 672},
+ {"try", 644},
{"and", 582},
- {"not", 678},
+ {"not", 679},
{NULL, -1},
},
(KeywordToken[]) {
{"from", 621},
{"pass", 504},
- {"with", 634},
- {"elif", 663},
- {"else", 664},
+ {"with", 635},
+ {"elif", 664},
+ {"else", 665},
{"None", 614},
{"True", 613},
{NULL, -1},
{"raise", 525},
{"yield", 580},
{"break", 508},
- {"async", 673},
- {"class", 676},
- {"while", 666},
+ {"async", 674},
+ {"class", 677},
+ {"while", 667},
{"False", 615},
{"await", 590},
{NULL, -1},
},
(KeywordToken[]) {
{"return", 522},
- {"import", 620},
+ {"import", 622},
{"assert", 529},
{"global", 526},
- {"except", 656},
+ {"except", 657},
{"lambda", 612},
{NULL, -1},
},
(KeywordToken[]) {
- {"finally", 652},
+ {"finally", 653},
{NULL, -1},
},
(KeywordToken[]) {
D(fprintf(stderr, "%*c> compound_stmt[%d-%d]: %s\n", p->level, ' ', _mark, p->mark, "&'if' if_stmt"));
stmt_ty if_stmt_var;
if (
- _PyPegen_lookahead_with_int(1, _PyPegen_expect_token, p, 661) // token='if'
+ _PyPegen_lookahead_with_int(1, _PyPegen_expect_token, p, 662) // token='if'
&&
(if_stmt_var = if_stmt_rule(p)) // if_stmt
)
D(fprintf(stderr, "%*c> compound_stmt[%d-%d]: %s\n", p->level, ' ', _mark, p->mark, "&'try' try_stmt"));
stmt_ty try_stmt_var;
if (
- _PyPegen_lookahead_with_int(1, _PyPegen_expect_token, p, 643) // token='try'
+ _PyPegen_lookahead_with_int(1, _PyPegen_expect_token, p, 644) // token='try'
&&
(try_stmt_var = try_stmt_rule(p)) // try_stmt
)
D(fprintf(stderr, "%*c> compound_stmt[%d-%d]: %s\n", p->level, ' ', _mark, p->mark, "&'while' while_stmt"));
stmt_ty while_stmt_var;
if (
- _PyPegen_lookahead_with_int(1, _PyPegen_expect_token, p, 666) // token='while'
+ _PyPegen_lookahead_with_int(1, _PyPegen_expect_token, p, 667) // token='while'
&&
(while_stmt_var = while_stmt_rule(p)) // while_stmt
)
Token * _keyword;
asdl_alias_seq* a;
if (
- (_keyword = _PyPegen_expect_token(p, 620)) // token='import'
+ (_keyword = _PyPegen_expect_token(p, 622)) // token='import'
&&
(a = dotted_as_names_rule(p)) // dotted_as_names
)
&&
(b = dotted_name_rule(p)) // dotted_name
&&
- (_keyword_1 = _PyPegen_expect_token(p, 620)) // token='import'
+ (_keyword_1 = _PyPegen_expect_token(p, 622)) // token='import'
&&
(c = import_from_targets_rule(p)) // import_from_targets
)
&&
(a = _loop1_25_rule(p)) // (('.' | '...'))+
&&
- (_keyword_1 = _PyPegen_expect_token(p, 620)) // token='import'
+ (_keyword_1 = _PyPegen_expect_token(p, 622)) // token='import'
&&
(b = import_from_targets_rule(p)) // import_from_targets
)
asdl_stmt_seq* c;
void *t;
if (
- (_keyword = _PyPegen_expect_token(p, 676)) // token='class'
+ (_keyword = _PyPegen_expect_token(p, 677)) // token='class'
&&
(a = _PyPegen_name_token(p)) // NAME
&&
void *t;
void *tc;
if (
- (_keyword = _PyPegen_expect_token(p, 674)) // token='def'
+ (_keyword = _PyPegen_expect_token(p, 675)) // token='def'
&&
(n = _PyPegen_name_token(p)) // NAME
&&
void *t;
void *tc;
if (
- (_keyword = _PyPegen_expect_token(p, 673)) // token='async'
+ (_keyword = _PyPegen_expect_token(p, 674)) // token='async'
&&
- (_keyword_1 = _PyPegen_expect_token(p, 674)) // token='def'
+ (_keyword_1 = _PyPegen_expect_token(p, 675)) // token='def'
&&
(n = _PyPegen_name_token(p)) // NAME
&&
asdl_stmt_seq* b;
stmt_ty c;
if (
- (_keyword = _PyPegen_expect_token(p, 661)) // token='if'
+ (_keyword = _PyPegen_expect_token(p, 662)) // token='if'
&&
(a = named_expression_rule(p)) // named_expression
&&
asdl_stmt_seq* b;
void *c;
if (
- (_keyword = _PyPegen_expect_token(p, 661)) // token='if'
+ (_keyword = _PyPegen_expect_token(p, 662)) // token='if'
&&
(a = named_expression_rule(p)) // named_expression
&&
asdl_stmt_seq* b;
stmt_ty c;
if (
- (_keyword = _PyPegen_expect_token(p, 663)) // token='elif'
+ (_keyword = _PyPegen_expect_token(p, 664)) // token='elif'
&&
(a = named_expression_rule(p)) // named_expression
&&
asdl_stmt_seq* b;
void *c;
if (
- (_keyword = _PyPegen_expect_token(p, 663)) // token='elif'
+ (_keyword = _PyPegen_expect_token(p, 664)) // token='elif'
&&
(a = named_expression_rule(p)) // named_expression
&&
Token * _literal;
asdl_stmt_seq* b;
if (
- (_keyword = _PyPegen_expect_token(p, 664)) // token='else'
+ (_keyword = _PyPegen_expect_token(p, 665)) // token='else'
&&
(_literal = _PyPegen_expect_forced_token(p, 11, ":")) // forced_token=':'
&&
asdl_stmt_seq* b;
void *c;
if (
- (_keyword = _PyPegen_expect_token(p, 666)) // token='while'
+ (_keyword = _PyPegen_expect_token(p, 667)) // token='while'
&&
(a = named_expression_rule(p)) // named_expression
&&
expr_ty t;
void *tc;
if (
- (_keyword = _PyPegen_expect_token(p, 671)) // token='for'
+ (_keyword = _PyPegen_expect_token(p, 672)) // token='for'
&&
(t = star_targets_rule(p)) // star_targets
&&
- (_keyword_1 = _PyPegen_expect_token(p, 672)) // token='in'
+ (_keyword_1 = _PyPegen_expect_token(p, 673)) // token='in'
&&
(_cut_var = 1)
&&
expr_ty t;
void *tc;
if (
- (_keyword = _PyPegen_expect_token(p, 673)) // token='async'
+ (_keyword = _PyPegen_expect_token(p, 674)) // token='async'
&&
- (_keyword_1 = _PyPegen_expect_token(p, 671)) // token='for'
+ (_keyword_1 = _PyPegen_expect_token(p, 672)) // token='for'
&&
(t = star_targets_rule(p)) // star_targets
&&
- (_keyword_2 = _PyPegen_expect_token(p, 672)) // token='in'
+ (_keyword_2 = _PyPegen_expect_token(p, 673)) // token='in'
&&
(_cut_var = 1)
&&
asdl_stmt_seq* b;
void *tc;
if (
- (_keyword = _PyPegen_expect_token(p, 634)) // token='with'
+ (_keyword = _PyPegen_expect_token(p, 635)) // token='with'
&&
(_literal = _PyPegen_expect_token(p, 7)) // token='('
&&
asdl_stmt_seq* b;
void *tc;
if (
- (_keyword = _PyPegen_expect_token(p, 634)) // token='with'
+ (_keyword = _PyPegen_expect_token(p, 635)) // token='with'
&&
(a = (asdl_withitem_seq*)_gather_53_rule(p)) // ','.with_item+
&&
asdl_withitem_seq* a;
asdl_stmt_seq* b;
if (
- (_keyword = _PyPegen_expect_token(p, 673)) // token='async'
+ (_keyword = _PyPegen_expect_token(p, 674)) // token='async'
&&
- (_keyword_1 = _PyPegen_expect_token(p, 634)) // token='with'
+ (_keyword_1 = _PyPegen_expect_token(p, 635)) // token='with'
&&
(_literal = _PyPegen_expect_token(p, 7)) // token='('
&&
asdl_stmt_seq* b;
void *tc;
if (
- (_keyword = _PyPegen_expect_token(p, 673)) // token='async'
+ (_keyword = _PyPegen_expect_token(p, 674)) // token='async'
&&
- (_keyword_1 = _PyPegen_expect_token(p, 634)) // token='with'
+ (_keyword_1 = _PyPegen_expect_token(p, 635)) // token='with'
&&
(a = (asdl_withitem_seq*)_gather_57_rule(p)) // ','.with_item+
&&
if (
(e = expression_rule(p)) // expression
&&
- (_keyword = _PyPegen_expect_token(p, 659)) // token='as'
+ (_keyword = _PyPegen_expect_token(p, 660)) // token='as'
&&
(t = star_target_rule(p)) // star_target
&&
asdl_stmt_seq* b;
asdl_stmt_seq* f;
if (
- (_keyword = _PyPegen_expect_token(p, 643)) // token='try'
+ (_keyword = _PyPegen_expect_token(p, 644)) // token='try'
&&
(_literal = _PyPegen_expect_forced_token(p, 11, ":")) // forced_token=':'
&&
asdl_excepthandler_seq* ex;
void *f;
if (
- (_keyword = _PyPegen_expect_token(p, 643)) // token='try'
+ (_keyword = _PyPegen_expect_token(p, 644)) // token='try'
&&
(_literal = _PyPegen_expect_forced_token(p, 11, ":")) // forced_token=':'
&&
asdl_excepthandler_seq* ex;
void *f;
if (
- (_keyword = _PyPegen_expect_token(p, 643)) // token='try'
+ (_keyword = _PyPegen_expect_token(p, 644)) // token='try'
&&
(_literal = _PyPegen_expect_forced_token(p, 11, ":")) // forced_token=':'
&&
expr_ty e;
void *t;
if (
- (_keyword = _PyPegen_expect_token(p, 656)) // token='except'
+ (_keyword = _PyPegen_expect_token(p, 657)) // token='except'
&&
(e = expression_rule(p)) // expression
&&
Token * _literal;
asdl_stmt_seq* b;
if (
- (_keyword = _PyPegen_expect_token(p, 656)) // token='except'
+ (_keyword = _PyPegen_expect_token(p, 657)) // token='except'
&&
(_literal = _PyPegen_expect_token(p, 11)) // token=':'
&&
expr_ty e;
void *t;
if (
- (_keyword = _PyPegen_expect_token(p, 656)) // token='except'
+ (_keyword = _PyPegen_expect_token(p, 657)) // token='except'
&&
(_literal = _PyPegen_expect_token(p, 16)) // token='*'
&&
Token * _literal;
asdl_stmt_seq* a;
if (
- (_keyword = _PyPegen_expect_token(p, 652)) // token='finally'
+ (_keyword = _PyPegen_expect_token(p, 653)) // token='finally'
&&
(_literal = _PyPegen_expect_forced_token(p, 11, ":")) // forced_token=':'
&&
Token * _keyword;
expr_ty guard;
if (
- (_keyword = _PyPegen_expect_token(p, 661)) // token='if'
+ (_keyword = _PyPegen_expect_token(p, 662)) // token='if'
&&
(guard = named_expression_rule(p)) // named_expression
)
if (
(pattern = or_pattern_rule(p)) // or_pattern
&&
- (_keyword = _PyPegen_expect_token(p, 659)) // token='as'
+ (_keyword = _PyPegen_expect_token(p, 660)) // token='as'
&&
(target = pattern_capture_target_rule(p)) // pattern_capture_target
)
if (
(a = disjunction_rule(p)) // disjunction
&&
- (_keyword = _PyPegen_expect_token(p, 661)) // token='if'
+ (_keyword = _PyPegen_expect_token(p, 662)) // token='if'
&&
(b = disjunction_rule(p)) // disjunction
&&
- (_keyword_1 = _PyPegen_expect_token(p, 664)) // token='else'
+ (_keyword_1 = _PyPegen_expect_token(p, 665)) // token='else'
&&
(c = expression_rule(p)) // expression
)
Token * _keyword;
expr_ty a;
if (
- (_keyword = _PyPegen_expect_token(p, 678)) // token='not'
+ (_keyword = _PyPegen_expect_token(p, 679)) // token='not'
&&
(a = inversion_rule(p)) // inversion
)
Token * _keyword_1;
expr_ty a;
if (
- (_keyword = _PyPegen_expect_token(p, 678)) // token='not'
+ (_keyword = _PyPegen_expect_token(p, 679)) // token='not'
&&
- (_keyword_1 = _PyPegen_expect_token(p, 672)) // token='in'
+ (_keyword_1 = _PyPegen_expect_token(p, 673)) // token='in'
&&
(a = bitwise_or_rule(p)) // bitwise_or
)
Token * _keyword;
expr_ty a;
if (
- (_keyword = _PyPegen_expect_token(p, 672)) // token='in'
+ (_keyword = _PyPegen_expect_token(p, 673)) // token='in'
&&
(a = bitwise_or_rule(p)) // bitwise_or
)
if (
(_keyword = _PyPegen_expect_token(p, 589)) // token='is'
&&
- (_keyword_1 = _PyPegen_expect_token(p, 678)) // token='not'
+ (_keyword_1 = _PyPegen_expect_token(p, 679)) // token='not'
&&
(a = bitwise_or_rule(p)) // bitwise_or
)
expr_ty b;
asdl_expr_seq* c;
if (
- (_keyword = _PyPegen_expect_token(p, 673)) // token='async'
+ (_keyword = _PyPegen_expect_token(p, 674)) // token='async'
&&
- (_keyword_1 = _PyPegen_expect_token(p, 671)) // token='for'
+ (_keyword_1 = _PyPegen_expect_token(p, 672)) // token='for'
&&
(a = star_targets_rule(p)) // star_targets
&&
- (_keyword_2 = _PyPegen_expect_token(p, 672)) // token='in'
+ (_keyword_2 = _PyPegen_expect_token(p, 673)) // token='in'
&&
(_cut_var = 1)
&&
expr_ty b;
asdl_expr_seq* c;
if (
- (_keyword = _PyPegen_expect_token(p, 671)) // token='for'
+ (_keyword = _PyPegen_expect_token(p, 672)) // token='for'
&&
(a = star_targets_rule(p)) // star_targets
&&
- (_keyword_1 = _PyPegen_expect_token(p, 672)) // token='in'
+ (_keyword_1 = _PyPegen_expect_token(p, 673)) // token='in'
&&
(_cut_var = 1)
&&
UNUSED(_opt_var); // Silence compiler warnings
void *_tmp_122_var;
if (
- (_opt_var = _PyPegen_expect_token(p, 673), !p->error_indicator) // 'async'?
+ (_opt_var = _PyPegen_expect_token(p, 674), !p->error_indicator) // 'async'?
&&
- (_keyword = _PyPegen_expect_token(p, 671)) // token='for'
+ (_keyword = _PyPegen_expect_token(p, 672)) // token='for'
&&
(_tmp_122_var = _tmp_122_rule(p)) // bitwise_or ((',' bitwise_or))* ','?
&&
- _PyPegen_lookahead_with_int(0, _PyPegen_expect_token, p, 672) // token='in'
+ _PyPegen_lookahead_with_int(0, _PyPegen_expect_token, p, 673) // token='in'
)
{
D(fprintf(stderr, "%*c+ for_if_clause[%d-%d]: %s succeeded!\n", p->level, ' ', _mark, p->mark, "'async'? 'for' (bitwise_or ((',' bitwise_or))* ','?) !'in'"));
if (
(a = disjunction_rule(p)) // disjunction
&&
- (_keyword = _PyPegen_expect_token(p, 661)) // token='if'
+ (_keyword = _PyPegen_expect_token(p, 662)) // token='if'
&&
(b = disjunction_rule(p)) // disjunction
&&
- (_keyword_1 = _PyPegen_expect_token(p, 664)) // token='else'
+ (_keyword_1 = _PyPegen_expect_token(p, 665)) // token='else'
&&
(c = expression_rule(p)) // expression
)
if (
(a = disjunction_rule(p)) // disjunction
&&
- (_keyword = _PyPegen_expect_token(p, 661)) // token='if'
+ (_keyword = _PyPegen_expect_token(p, 662)) // token='if'
&&
(b = disjunction_rule(p)) // disjunction
&&
if (
(expression_var = expression_rule(p)) // expression
&&
- (_keyword = _PyPegen_expect_token(p, 659)) // token='as'
+ (_keyword = _PyPegen_expect_token(p, 660)) // token='as'
&&
(a = expression_rule(p)) // expression
&&
UNUSED(_opt_var); // Silence compiler warnings
expr_ty a;
if (
- (_opt_var = _PyPegen_expect_token(p, 673), !p->error_indicator) // 'async'?
+ (_opt_var = _PyPegen_expect_token(p, 674), !p->error_indicator) // 'async'?
&&
- (_keyword = _PyPegen_expect_token(p, 671)) // token='for'
+ (_keyword = _PyPegen_expect_token(p, 672)) // token='for'
&&
(a = star_expressions_rule(p)) // star_expressions
)
return _res;
}
-// invalid_import: 'import' ','.dotted_name+ 'from' dotted_name
+// invalid_import: 'import' ','.dotted_name+ 'from' dotted_name | 'import' NEWLINE
static void *
invalid_import_rule(Parser *p)
{
Token * a;
expr_ty dotted_name_var;
if (
- (a = _PyPegen_expect_token(p, 620)) // token='import'
+ (a = _PyPegen_expect_token(p, 622)) // token='import'
&&
(_gather_206_var = _gather_206_rule(p)) // ','.dotted_name+
&&
D(fprintf(stderr, "%*c%s invalid_import[%d-%d]: %s failed!\n", p->level, ' ',
p->error_indicator ? "ERROR!" : "-", _mark, p->mark, "'import' ','.dotted_name+ 'from' dotted_name"));
}
+ { // 'import' NEWLINE
+ if (p->error_indicator) {
+ p->level--;
+ return NULL;
+ }
+ D(fprintf(stderr, "%*c> invalid_import[%d-%d]: %s\n", p->level, ' ', _mark, p->mark, "'import' NEWLINE"));
+ Token * _keyword;
+ Token * token;
+ if (
+ (_keyword = _PyPegen_expect_token(p, 622)) // token='import'
+ &&
+ (token = _PyPegen_expect_token(p, NEWLINE)) // token='NEWLINE'
+ )
+ {
+ D(fprintf(stderr, "%*c+ invalid_import[%d-%d]: %s succeeded!\n", p->level, ' ', _mark, p->mark, "'import' NEWLINE"));
+ _res = RAISE_SYNTAX_ERROR_STARTING_FROM ( token , "Expected one or more names after 'import'" );
+ if (_res == NULL && PyErr_Occurred()) {
+ p->error_indicator = 1;
+ p->level--;
+ return NULL;
+ }
+ goto done;
+ }
+ p->mark = _mark;
+ D(fprintf(stderr, "%*c%s invalid_import[%d-%d]: %s failed!\n", p->level, ' ',
+ p->error_indicator ? "ERROR!" : "-", _mark, p->mark, "'import' NEWLINE"));
+ }
_res = NULL;
done:
p->level--;
return _res;
}
-// invalid_import_from_targets: import_from_as_names ',' NEWLINE
+// invalid_import_from_targets: import_from_as_names ',' NEWLINE | NEWLINE
static void *
invalid_import_from_targets_rule(Parser *p)
{
D(fprintf(stderr, "%*c%s invalid_import_from_targets[%d-%d]: %s failed!\n", p->level, ' ',
p->error_indicator ? "ERROR!" : "-", _mark, p->mark, "import_from_as_names ',' NEWLINE"));
}
+ { // NEWLINE
+ if (p->error_indicator) {
+ p->level--;
+ return NULL;
+ }
+ D(fprintf(stderr, "%*c> invalid_import_from_targets[%d-%d]: %s\n", p->level, ' ', _mark, p->mark, "NEWLINE"));
+ Token * token;
+ if (
+ (token = _PyPegen_expect_token(p, NEWLINE)) // token='NEWLINE'
+ )
+ {
+ D(fprintf(stderr, "%*c+ invalid_import_from_targets[%d-%d]: %s succeeded!\n", p->level, ' ', _mark, p->mark, "NEWLINE"));
+ _res = RAISE_SYNTAX_ERROR_STARTING_FROM ( token , "Expected one or more names after 'import'" );
+ if (_res == NULL && PyErr_Occurred()) {
+ p->error_indicator = 1;
+ p->level--;
+ return NULL;
+ }
+ goto done;
+ }
+ p->mark = _mark;
+ D(fprintf(stderr, "%*c%s invalid_import_from_targets[%d-%d]: %s failed!\n", p->level, ' ',
+ p->error_indicator ? "ERROR!" : "-", _mark, p->mark, "NEWLINE"));
+ }
_res = NULL;
done:
p->level--;
Token * a;
expr_ty named_expression_var;
if (
- (a = _PyPegen_expect_token(p, 663)) // token='elif'
+ (a = _PyPegen_expect_token(p, 664)) // token='elif'
&&
(named_expression_var = named_expression_rule(p)) // named_expression
&&
Token * _literal;
Token * a;
if (
- (a = _PyPegen_expect_token(p, 664)) // token='else'
+ (a = _PyPegen_expect_token(p, 665)) // token='else'
&&
(_literal = _PyPegen_expect_token(p, 11)) // token=':'
)
UNUSED(_opt_var); // Silence compiler warnings
Token * newline_var;
if (
- (_opt_var = _PyPegen_expect_token(p, 673), !p->error_indicator) // 'async'?
+ (_opt_var = _PyPegen_expect_token(p, 674), !p->error_indicator) // 'async'?
&&
- (_keyword = _PyPegen_expect_token(p, 634)) // token='with'
+ (_keyword = _PyPegen_expect_token(p, 635)) // token='with'
&&
(_gather_208_var = _gather_208_rule(p)) // ','.(expression ['as' star_target])+
&&
UNUSED(_opt_var_1); // Silence compiler warnings
Token * newline_var;
if (
- (_opt_var = _PyPegen_expect_token(p, 673), !p->error_indicator) // 'async'?
+ (_opt_var = _PyPegen_expect_token(p, 674), !p->error_indicator) // 'async'?
&&
- (_keyword = _PyPegen_expect_token(p, 634)) // token='with'
+ (_keyword = _PyPegen_expect_token(p, 635)) // token='with'
&&
(_literal = _PyPegen_expect_token(p, 7)) // token='('
&&
Token * a;
Token * newline_var;
if (
- (_opt_var = _PyPegen_expect_token(p, 673), !p->error_indicator) // 'async'?
+ (_opt_var = _PyPegen_expect_token(p, 674), !p->error_indicator) // 'async'?
&&
- (a = _PyPegen_expect_token(p, 634)) // token='with'
+ (a = _PyPegen_expect_token(p, 635)) // token='with'
&&
(_gather_212_var = _gather_212_rule(p)) // ','.(expression ['as' star_target])+
&&
Token * a;
Token * newline_var;
if (
- (_opt_var = _PyPegen_expect_token(p, 673), !p->error_indicator) // 'async'?
+ (_opt_var = _PyPegen_expect_token(p, 674), !p->error_indicator) // 'async'?
&&
- (a = _PyPegen_expect_token(p, 634)) // token='with'
+ (a = _PyPegen_expect_token(p, 635)) // token='with'
&&
(_literal = _PyPegen_expect_token(p, 7)) // token='('
&&
Token * a;
Token * newline_var;
if (
- (a = _PyPegen_expect_token(p, 643)) // token='try'
+ (a = _PyPegen_expect_token(p, 644)) // token='try'
&&
(_literal = _PyPegen_expect_token(p, 11)) // token=':'
&&
Token * _literal;
asdl_stmt_seq* block_var;
if (
- (_keyword = _PyPegen_expect_token(p, 643)) // token='try'
+ (_keyword = _PyPegen_expect_token(p, 644)) // token='try'
&&
(_literal = _PyPegen_expect_token(p, 11)) // token=':'
&&
Token * b;
expr_ty expression_var;
if (
- (_keyword = _PyPegen_expect_token(p, 643)) // token='try'
+ (_keyword = _PyPegen_expect_token(p, 644)) // token='try'
&&
(_literal = _PyPegen_expect_token(p, 11)) // token=':'
&&
&&
(_loop1_218_var = _loop1_218_rule(p)) // except_block+
&&
- (a = _PyPegen_expect_token(p, 656)) // token='except'
+ (a = _PyPegen_expect_token(p, 657)) // token='except'
&&
(b = _PyPegen_expect_token(p, 16)) // token='*'
&&
UNUSED(_opt_var); // Silence compiler warnings
Token * a;
if (
- (_keyword = _PyPegen_expect_token(p, 643)) // token='try'
+ (_keyword = _PyPegen_expect_token(p, 644)) // token='try'
&&
(_literal = _PyPegen_expect_token(p, 11)) // token=':'
&&
&&
(_loop1_221_var = _loop1_221_rule(p)) // except_star_block+
&&
- (a = _PyPegen_expect_token(p, 656)) // token='except'
+ (a = _PyPegen_expect_token(p, 657)) // token='except'
&&
(_opt_var = _tmp_222_rule(p), !p->error_indicator) // [expression ['as' NAME]]
&&
expr_ty a;
expr_ty expressions_var;
if (
- (_keyword = _PyPegen_expect_token(p, 656)) // token='except'
+ (_keyword = _PyPegen_expect_token(p, 657)) // token='except'
&&
(_opt_var = _PyPegen_expect_token(p, 16), !p->error_indicator) // '*'?
&&
expr_ty expression_var;
Token * newline_var;
if (
- (a = _PyPegen_expect_token(p, 656)) // token='except'
+ (a = _PyPegen_expect_token(p, 657)) // token='except'
&&
(_opt_var = _PyPegen_expect_token(p, 16), !p->error_indicator) // '*'?
&&
Token * a;
Token * newline_var;
if (
- (a = _PyPegen_expect_token(p, 656)) // token='except'
+ (a = _PyPegen_expect_token(p, 657)) // token='except'
&&
(newline_var = _PyPegen_expect_token(p, NEWLINE)) // token='NEWLINE'
)
void *_tmp_225_var;
Token * a;
if (
- (a = _PyPegen_expect_token(p, 656)) // token='except'
+ (a = _PyPegen_expect_token(p, 657)) // token='except'
&&
(_literal = _PyPegen_expect_token(p, 16)) // token='*'
&&
Token * a;
Token * newline_var;
if (
- (a = _PyPegen_expect_token(p, 652)) // token='finally'
+ (a = _PyPegen_expect_token(p, 653)) // token='finally'
&&
(_literal = _PyPegen_expect_token(p, 11)) // token=':'
&&
expr_ty expression_var;
Token * newline_var;
if (
- (a = _PyPegen_expect_token(p, 656)) // token='except'
+ (a = _PyPegen_expect_token(p, 657)) // token='except'
&&
(expression_var = expression_rule(p)) // expression
&&
Token * a;
Token * newline_var;
if (
- (a = _PyPegen_expect_token(p, 656)) // token='except'
+ (a = _PyPegen_expect_token(p, 657)) // token='except'
&&
(_literal = _PyPegen_expect_token(p, 11)) // token=':'
&&
expr_ty expression_var;
Token * newline_var;
if (
- (a = _PyPegen_expect_token(p, 656)) // token='except'
+ (a = _PyPegen_expect_token(p, 657)) // token='except'
&&
(_literal = _PyPegen_expect_token(p, 16)) // token='*'
&&
if (
(or_pattern_var = or_pattern_rule(p)) // or_pattern
&&
- (_keyword = _PyPegen_expect_token(p, 659)) // token='as'
+ (_keyword = _PyPegen_expect_token(p, 660)) // token='as'
&&
(a = _PyPegen_expect_soft_keyword(p, "_")) // soft_keyword='"_"'
)
if (
(or_pattern_var = or_pattern_rule(p)) // or_pattern
&&
- (_keyword = _PyPegen_expect_token(p, 659)) // token='as'
+ (_keyword = _PyPegen_expect_token(p, 660)) // token='as'
&&
_PyPegen_lookahead_with_name(0, _PyPegen_name_token, p)
&&
expr_ty named_expression_var;
Token * newline_var;
if (
- (_keyword = _PyPegen_expect_token(p, 661)) // token='if'
+ (_keyword = _PyPegen_expect_token(p, 662)) // token='if'
&&
(named_expression_var = named_expression_rule(p)) // named_expression
&&
expr_ty a_1;
Token * newline_var;
if (
- (a = _PyPegen_expect_token(p, 661)) // token='if'
+ (a = _PyPegen_expect_token(p, 662)) // token='if'
&&
(a_1 = named_expression_rule(p)) // named_expression
&&
expr_ty named_expression_var;
Token * newline_var;
if (
- (_keyword = _PyPegen_expect_token(p, 663)) // token='elif'
+ (_keyword = _PyPegen_expect_token(p, 664)) // token='elif'
&&
(named_expression_var = named_expression_rule(p)) // named_expression
&&
expr_ty named_expression_var;
Token * newline_var;
if (
- (a = _PyPegen_expect_token(p, 663)) // token='elif'
+ (a = _PyPegen_expect_token(p, 664)) // token='elif'
&&
(named_expression_var = named_expression_rule(p)) // named_expression
&&
Token * a;
Token * newline_var;
if (
- (a = _PyPegen_expect_token(p, 664)) // token='else'
+ (a = _PyPegen_expect_token(p, 665)) // token='else'
&&
(_literal = _PyPegen_expect_token(p, 11)) // token=':'
&&
expr_ty named_expression_var;
Token * newline_var;
if (
- (_keyword = _PyPegen_expect_token(p, 666)) // token='while'
+ (_keyword = _PyPegen_expect_token(p, 667)) // token='while'
&&
(named_expression_var = named_expression_rule(p)) // named_expression
&&
expr_ty named_expression_var;
Token * newline_var;
if (
- (a = _PyPegen_expect_token(p, 666)) // token='while'
+ (a = _PyPegen_expect_token(p, 667)) // token='while'
&&
(named_expression_var = named_expression_rule(p)) // named_expression
&&
expr_ty star_expressions_var;
expr_ty star_targets_var;
if (
- (_opt_var = _PyPegen_expect_token(p, 673), !p->error_indicator) // 'async'?
+ (_opt_var = _PyPegen_expect_token(p, 674), !p->error_indicator) // 'async'?
&&
- (_keyword = _PyPegen_expect_token(p, 671)) // token='for'
+ (_keyword = _PyPegen_expect_token(p, 672)) // token='for'
&&
(star_targets_var = star_targets_rule(p)) // star_targets
&&
- (_keyword_1 = _PyPegen_expect_token(p, 672)) // token='in'
+ (_keyword_1 = _PyPegen_expect_token(p, 673)) // token='in'
&&
(star_expressions_var = star_expressions_rule(p)) // star_expressions
&&
expr_ty star_expressions_var;
expr_ty star_targets_var;
if (
- (_opt_var = _PyPegen_expect_token(p, 673), !p->error_indicator) // 'async'?
+ (_opt_var = _PyPegen_expect_token(p, 674), !p->error_indicator) // 'async'?
&&
- (a = _PyPegen_expect_token(p, 671)) // token='for'
+ (a = _PyPegen_expect_token(p, 672)) // token='for'
&&
(star_targets_var = star_targets_rule(p)) // star_targets
&&
- (_keyword = _PyPegen_expect_token(p, 672)) // token='in'
+ (_keyword = _PyPegen_expect_token(p, 673)) // token='in'
&&
(star_expressions_var = star_expressions_rule(p)) // star_expressions
&&
expr_ty name_var;
Token * newline_var;
if (
- (_opt_var = _PyPegen_expect_token(p, 673), !p->error_indicator) // 'async'?
+ (_opt_var = _PyPegen_expect_token(p, 674), !p->error_indicator) // 'async'?
&&
- (a = _PyPegen_expect_token(p, 674)) // token='def'
+ (a = _PyPegen_expect_token(p, 675)) // token='def'
&&
(name_var = _PyPegen_name_token(p)) // NAME
&&
expr_ty name_var;
Token * newline_var;
if (
- (_keyword = _PyPegen_expect_token(p, 676)) // token='class'
+ (_keyword = _PyPegen_expect_token(p, 677)) // token='class'
&&
(name_var = _PyPegen_name_token(p)) // NAME
&&
expr_ty name_var;
Token * newline_var;
if (
- (a = _PyPegen_expect_token(p, 676)) // token='class'
+ (a = _PyPegen_expect_token(p, 677)) // token='class'
&&
(name_var = _PyPegen_name_token(p)) // NAME
&&
&&
(_tmp_251_var = _tmp_251_rule(p)) // '+' | '-' | '*' | '/' | '%' | '//' | '@'
&&
- (a = _PyPegen_expect_token(p, 678)) // token='not'
+ (a = _PyPegen_expect_token(p, 679)) // token='not'
&&
(b = inversion_rule(p)) // inversion
)
if (
(_tmp_252_var = _tmp_252_rule(p)) // '+' | '-' | '~'
&&
- (a = _PyPegen_expect_token(p, 678)) // token='not'
+ (a = _PyPegen_expect_token(p, 679)) // token='not'
&&
(b = factor_rule(p)) // factor
)
D(fprintf(stderr, "%*c> _tmp_6[%d-%d]: %s\n", p->level, ' ', _mark, p->mark, "'import'"));
Token * _keyword;
if (
- (_keyword = _PyPegen_expect_token(p, 620)) // token='import'
+ (_keyword = _PyPegen_expect_token(p, 622)) // token='import'
)
{
D(fprintf(stderr, "%*c+ _tmp_6[%d-%d]: %s succeeded!\n", p->level, ' ', _mark, p->mark, "'import'"));
D(fprintf(stderr, "%*c> _tmp_7[%d-%d]: %s\n", p->level, ' ', _mark, p->mark, "'def'"));
Token * _keyword;
if (
- (_keyword = _PyPegen_expect_token(p, 674)) // token='def'
+ (_keyword = _PyPegen_expect_token(p, 675)) // token='def'
)
{
D(fprintf(stderr, "%*c+ _tmp_7[%d-%d]: %s succeeded!\n", p->level, ' ', _mark, p->mark, "'def'"));
D(fprintf(stderr, "%*c> _tmp_7[%d-%d]: %s\n", p->level, ' ', _mark, p->mark, "'async'"));
Token * _keyword;
if (
- (_keyword = _PyPegen_expect_token(p, 673)) // token='async'
+ (_keyword = _PyPegen_expect_token(p, 674)) // token='async'
)
{
D(fprintf(stderr, "%*c+ _tmp_7[%d-%d]: %s succeeded!\n", p->level, ' ', _mark, p->mark, "'async'"));
D(fprintf(stderr, "%*c> _tmp_8[%d-%d]: %s\n", p->level, ' ', _mark, p->mark, "'class'"));
Token * _keyword;
if (
- (_keyword = _PyPegen_expect_token(p, 676)) // token='class'
+ (_keyword = _PyPegen_expect_token(p, 677)) // token='class'
)
{
D(fprintf(stderr, "%*c+ _tmp_8[%d-%d]: %s succeeded!\n", p->level, ' ', _mark, p->mark, "'class'"));
D(fprintf(stderr, "%*c> _tmp_9[%d-%d]: %s\n", p->level, ' ', _mark, p->mark, "'with'"));
Token * _keyword;
if (
- (_keyword = _PyPegen_expect_token(p, 634)) // token='with'
+ (_keyword = _PyPegen_expect_token(p, 635)) // token='with'
)
{
D(fprintf(stderr, "%*c+ _tmp_9[%d-%d]: %s succeeded!\n", p->level, ' ', _mark, p->mark, "'with'"));
D(fprintf(stderr, "%*c> _tmp_9[%d-%d]: %s\n", p->level, ' ', _mark, p->mark, "'async'"));
Token * _keyword;
if (
- (_keyword = _PyPegen_expect_token(p, 673)) // token='async'
+ (_keyword = _PyPegen_expect_token(p, 674)) // token='async'
)
{
D(fprintf(stderr, "%*c+ _tmp_9[%d-%d]: %s succeeded!\n", p->level, ' ', _mark, p->mark, "'async'"));
D(fprintf(stderr, "%*c> _tmp_10[%d-%d]: %s\n", p->level, ' ', _mark, p->mark, "'for'"));
Token * _keyword;
if (
- (_keyword = _PyPegen_expect_token(p, 671)) // token='for'
+ (_keyword = _PyPegen_expect_token(p, 672)) // token='for'
)
{
D(fprintf(stderr, "%*c+ _tmp_10[%d-%d]: %s succeeded!\n", p->level, ' ', _mark, p->mark, "'for'"));
D(fprintf(stderr, "%*c> _tmp_10[%d-%d]: %s\n", p->level, ' ', _mark, p->mark, "'async'"));
Token * _keyword;
if (
- (_keyword = _PyPegen_expect_token(p, 673)) // token='async'
+ (_keyword = _PyPegen_expect_token(p, 674)) // token='async'
)
{
D(fprintf(stderr, "%*c+ _tmp_10[%d-%d]: %s succeeded!\n", p->level, ' ', _mark, p->mark, "'async'"));
Token * _keyword;
expr_ty z;
if (
- (_keyword = _PyPegen_expect_token(p, 659)) // token='as'
+ (_keyword = _PyPegen_expect_token(p, 660)) // token='as'
&&
(z = _PyPegen_name_token(p)) // NAME
)
Token * _keyword;
expr_ty z;
if (
- (_keyword = _PyPegen_expect_token(p, 659)) // token='as'
+ (_keyword = _PyPegen_expect_token(p, 660)) // token='as'
&&
(z = _PyPegen_name_token(p)) // NAME
)
Token * _keyword;
expr_ty z;
if (
- (_keyword = _PyPegen_expect_token(p, 659)) // token='as'
+ (_keyword = _PyPegen_expect_token(p, 660)) // token='as'
&&
(z = _PyPegen_name_token(p)) // NAME
)
Token * _keyword;
expr_ty z;
if (
- (_keyword = _PyPegen_expect_token(p, 659)) // token='as'
+ (_keyword = _PyPegen_expect_token(p, 660)) // token='as'
&&
(z = _PyPegen_name_token(p)) // NAME
)
D(fprintf(stderr, "%*c> _tmp_160[%d-%d]: %s\n", p->level, ' ', _mark, p->mark, "'else'"));
Token * _keyword;
if (
- (_keyword = _PyPegen_expect_token(p, 664)) // token='else'
+ (_keyword = _PyPegen_expect_token(p, 665)) // token='else'
)
{
D(fprintf(stderr, "%*c+ _tmp_160[%d-%d]: %s succeeded!\n", p->level, ' ', _mark, p->mark, "'else'"));
D(fprintf(stderr, "%*c> _tmp_216[%d-%d]: %s\n", p->level, ' ', _mark, p->mark, "'except'"));
Token * _keyword;
if (
- (_keyword = _PyPegen_expect_token(p, 656)) // token='except'
+ (_keyword = _PyPegen_expect_token(p, 657)) // token='except'
)
{
D(fprintf(stderr, "%*c+ _tmp_216[%d-%d]: %s succeeded!\n", p->level, ' ', _mark, p->mark, "'except'"));
D(fprintf(stderr, "%*c> _tmp_216[%d-%d]: %s\n", p->level, ' ', _mark, p->mark, "'finally'"));
Token * _keyword;
if (
- (_keyword = _PyPegen_expect_token(p, 652)) // token='finally'
+ (_keyword = _PyPegen_expect_token(p, 653)) // token='finally'
)
{
D(fprintf(stderr, "%*c+ _tmp_216[%d-%d]: %s succeeded!\n", p->level, ' ', _mark, p->mark, "'finally'"));
Token * _keyword;
expr_ty name_var;
if (
- (_keyword = _PyPegen_expect_token(p, 659)) // token='as'
+ (_keyword = _PyPegen_expect_token(p, 660)) // token='as'
&&
(name_var = _PyPegen_name_token(p)) // NAME
)
Token * _keyword;
expr_ty name_var;
if (
- (_keyword = _PyPegen_expect_token(p, 659)) // token='as'
+ (_keyword = _PyPegen_expect_token(p, 660)) // token='as'
&&
(name_var = _PyPegen_name_token(p)) // NAME
)
Token * _keyword;
expr_ty name_var;
if (
- (_keyword = _PyPegen_expect_token(p, 659)) // token='as'
+ (_keyword = _PyPegen_expect_token(p, 660)) // token='as'
&&
(name_var = _PyPegen_name_token(p)) // NAME
)
Token * _keyword;
expr_ty name_var;
if (
- (_keyword = _PyPegen_expect_token(p, 659)) // token='as'
+ (_keyword = _PyPegen_expect_token(p, 660)) // token='as'
&&
(name_var = _PyPegen_name_token(p)) // NAME
)
Token * _keyword;
expr_ty name_var;
if (
- (_keyword = _PyPegen_expect_token(p, 659)) // token='as'
+ (_keyword = _PyPegen_expect_token(p, 660)) // token='as'
&&
(name_var = _PyPegen_name_token(p)) // NAME
)
Token * _keyword;
expr_ty z;
if (
- (_keyword = _PyPegen_expect_token(p, 661)) // token='if'
+ (_keyword = _PyPegen_expect_token(p, 662)) // token='if'
&&
(z = disjunction_rule(p)) // disjunction
)
Token * _keyword;
expr_ty z;
if (
- (_keyword = _PyPegen_expect_token(p, 661)) // token='if'
+ (_keyword = _PyPegen_expect_token(p, 662)) // token='if'
&&
(z = disjunction_rule(p)) // disjunction
)
Token * _keyword;
expr_ty name_var;
if (
- (_keyword = _PyPegen_expect_token(p, 659)) // token='as'
+ (_keyword = _PyPegen_expect_token(p, 660)) // token='as'
&&
(name_var = _PyPegen_name_token(p)) // NAME
)
Token * _keyword;
expr_ty star_target_var;
if (
- (_keyword = _PyPegen_expect_token(p, 659)) // token='as'
+ (_keyword = _PyPegen_expect_token(p, 660)) // token='as'
&&
(star_target_var = star_target_rule(p)) // star_target
)
Token * _keyword;
expr_ty star_target_var;
if (
- (_keyword = _PyPegen_expect_token(p, 659)) // token='as'
+ (_keyword = _PyPegen_expect_token(p, 660)) // token='as'
&&
(star_target_var = star_target_rule(p)) // star_target
)
Token * _keyword;
expr_ty star_target_var;
if (
- (_keyword = _PyPegen_expect_token(p, 659)) // token='as'
+ (_keyword = _PyPegen_expect_token(p, 660)) // token='as'
&&
(star_target_var = star_target_rule(p)) // star_target
)
Token * _keyword;
expr_ty star_target_var;
if (
- (_keyword = _PyPegen_expect_token(p, 659)) // token='as'
+ (_keyword = _PyPegen_expect_token(p, 660)) // token='as'
&&
(star_target_var = star_target_rule(p)) // star_target
)