Created
January 18, 2022 17:52
-
-
Save conqp/1b0fc59da0f464a2d22f748aad59ec5f to your computer and use it in GitHub Desktop.
Add keyword "aint" to Python as alternative to "is not"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 57c73151fe6d8600bb9bc6862781f63541f28cd8 Mon Sep 17 00:00:00 2001 | |
From: Richard Neumann <r.neumann@homeinfo.de> | |
Date: Tue, 18 Jan 2022 18:50:33 +0100 | |
Subject: [PATCH] Add "aint" keyword as alternative to "is not" | |
--- | |
Grammar/python.gram | 4 +- | |
Parser/parser.c | 294 ++++++++++++++++++++++++-------------------- | |
2 files changed, 164 insertions(+), 134 deletions(-) | |
diff --git a/Grammar/python.gram b/Grammar/python.gram | |
index c5a5f1b7fe..bfe096a66b 100644 | |
--- a/Grammar/python.gram | |
+++ b/Grammar/python.gram | |
@@ -709,7 +709,9 @@ gte_bitwise_or[CmpopExprPair*]: '>=' a=bitwise_or { _PyPegen_cmpop_expr_pair(p, | |
gt_bitwise_or[CmpopExprPair*]: '>' a=bitwise_or { _PyPegen_cmpop_expr_pair(p, Gt, a) } | |
notin_bitwise_or[CmpopExprPair*]: 'not' 'in' a=bitwise_or { _PyPegen_cmpop_expr_pair(p, NotIn, a) } | |
in_bitwise_or[CmpopExprPair*]: 'in' a=bitwise_or { _PyPegen_cmpop_expr_pair(p, In, a) } | |
-isnot_bitwise_or[CmpopExprPair*]: 'is' 'not' a=bitwise_or { _PyPegen_cmpop_expr_pair(p, IsNot, a) } | |
+isnot_bitwise_or[CmpopExprPair*]: | |
+ | 'is' 'not' a=bitwise_or { _PyPegen_cmpop_expr_pair(p, IsNot, a) } | |
+ | 'aint' a=bitwise_or { _PyPegen_cmpop_expr_pair(p, IsNot, a) } | |
is_bitwise_or[CmpopExprPair*]: 'is' a=bitwise_or { _PyPegen_cmpop_expr_pair(p, Is, a) } | |
# Bitwise operators | |
diff --git a/Parser/parser.c b/Parser/parser.c | |
index 07a04c9174..2c3ffb061d 100644 | |
--- a/Parser/parser.c | |
+++ b/Parser/parser.c | |
@@ -13,18 +13,18 @@ static KeywordToken *reserved_keywords[] = { | |
(KeywordToken[]) {{NULL, -1}}, | |
(KeywordToken[]) {{NULL, -1}}, | |
(KeywordToken[]) { | |
- {"if", 634}, | |
- {"as", 632}, | |
- {"in", 641}, | |
+ {"if", 635}, | |
+ {"as", 633}, | |
+ {"in", 642}, | |
{"or", 574}, | |
- {"is", 582}, | |
+ {"is", 583}, | |
{NULL, -1}, | |
}, | |
(KeywordToken[]) { | |
- {"del", 603}, | |
- {"def", 642}, | |
- {"for", 640}, | |
- {"try", 618}, | |
+ {"del", 604}, | |
+ {"def", 643}, | |
+ {"for", 641}, | |
+ {"try", 619}, | |
{"and", 575}, | |
{"not", 581}, | |
{NULL, -1}, | |
@@ -32,20 +32,21 @@ static KeywordToken *reserved_keywords[] = { | |
(KeywordToken[]) { | |
{"from", 572}, | |
{"pass", 504}, | |
- {"with", 612}, | |
- {"elif", 636}, | |
- {"else", 637}, | |
- {"None", 601}, | |
- {"True", 600}, | |
+ {"with", 613}, | |
+ {"elif", 637}, | |
+ {"else", 638}, | |
+ {"None", 602}, | |
+ {"True", 601}, | |
+ {"aint", 582}, | |
{NULL, -1}, | |
}, | |
(KeywordToken[]) { | |
{"raise", 522}, | |
{"yield", 573}, | |
{"break", 508}, | |
- {"class", 643}, | |
- {"while", 639}, | |
- {"False", 602}, | |
+ {"class", 644}, | |
+ {"while", 640}, | |
+ {"False", 603}, | |
{NULL, -1}, | |
}, | |
(KeywordToken[]) { | |
@@ -53,12 +54,12 @@ static KeywordToken *reserved_keywords[] = { | |
{"import", 531}, | |
{"assert", 526}, | |
{"global", 523}, | |
- {"except", 629}, | |
- {"lambda", 586}, | |
+ {"except", 630}, | |
+ {"lambda", 587}, | |
{NULL, -1}, | |
}, | |
(KeywordToken[]) { | |
- {"finally", 625}, | |
+ {"finally", 626}, | |
{NULL, -1}, | |
}, | |
(KeywordToken[]) { | |
@@ -1728,7 +1729,7 @@ simple_stmt_rule(Parser *p) | |
D(fprintf(stderr, "%*c> simple_stmt[%d-%d]: %s\n", p->level, ' ', _mark, p->mark, "&'del' del_stmt")); | |
stmt_ty del_stmt_var; | |
if ( | |
- _PyPegen_lookahead_with_int(1, _PyPegen_expect_token, p, 603) // token='del' | |
+ _PyPegen_lookahead_with_int(1, _PyPegen_expect_token, p, 604) // token='del' | |
&& | |
(del_stmt_var = del_stmt_rule(p)) // del_stmt | |
) | |
@@ -1949,7 +1950,7 @@ compound_stmt_rule(Parser *p) | |
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, 634) // token='if' | |
+ _PyPegen_lookahead_with_int(1, _PyPegen_expect_token, p, 635) // token='if' | |
&& | |
(if_stmt_var = if_stmt_rule(p)) // if_stmt | |
) | |
@@ -2033,7 +2034,7 @@ compound_stmt_rule(Parser *p) | |
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, 618) // token='try' | |
+ _PyPegen_lookahead_with_int(1, _PyPegen_expect_token, p, 619) // token='try' | |
&& | |
(try_stmt_var = try_stmt_rule(p)) // try_stmt | |
) | |
@@ -2054,7 +2055,7 @@ compound_stmt_rule(Parser *p) | |
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, 639) // token='while' | |
+ _PyPegen_lookahead_with_int(1, _PyPegen_expect_token, p, 640) // token='while' | |
&& | |
(while_stmt_var = while_stmt_rule(p)) // while_stmt | |
) | |
@@ -3047,7 +3048,7 @@ del_stmt_rule(Parser *p) | |
Token * _keyword; | |
asdl_expr_seq* a; | |
if ( | |
- (_keyword = _PyPegen_expect_token(p, 603)) // token='del' | |
+ (_keyword = _PyPegen_expect_token(p, 604)) // token='del' | |
&& | |
(a = del_targets_rule(p)) // del_targets | |
&& | |
@@ -4198,7 +4199,7 @@ class_def_raw_rule(Parser *p) | |
void *b; | |
asdl_stmt_seq* c; | |
if ( | |
- (_keyword = _PyPegen_expect_token(p, 643)) // token='class' | |
+ (_keyword = _PyPegen_expect_token(p, 644)) // token='class' | |
&& | |
(a = _PyPegen_name_token(p)) // NAME | |
&& | |
@@ -4364,7 +4365,7 @@ function_def_raw_rule(Parser *p) | |
void *params; | |
void *tc; | |
if ( | |
- (_keyword = _PyPegen_expect_token(p, 642)) // token='def' | |
+ (_keyword = _PyPegen_expect_token(p, 643)) // token='def' | |
&& | |
(n = _PyPegen_name_token(p)) // NAME | |
&& | |
@@ -4424,7 +4425,7 @@ function_def_raw_rule(Parser *p) | |
if ( | |
(async_var = _PyPegen_expect_token(p, ASYNC)) // token='ASYNC' | |
&& | |
- (_keyword = _PyPegen_expect_token(p, 642)) // token='def' | |
+ (_keyword = _PyPegen_expect_token(p, 643)) // token='def' | |
&& | |
(n = _PyPegen_name_token(p)) // NAME | |
&& | |
@@ -5511,7 +5512,7 @@ if_stmt_rule(Parser *p) | |
asdl_stmt_seq* b; | |
stmt_ty c; | |
if ( | |
- (_keyword = _PyPegen_expect_token(p, 634)) // token='if' | |
+ (_keyword = _PyPegen_expect_token(p, 635)) // token='if' | |
&& | |
(a = named_expression_rule(p)) // named_expression | |
&& | |
@@ -5556,7 +5557,7 @@ if_stmt_rule(Parser *p) | |
asdl_stmt_seq* b; | |
void *c; | |
if ( | |
- (_keyword = _PyPegen_expect_token(p, 634)) // token='if' | |
+ (_keyword = _PyPegen_expect_token(p, 635)) // token='if' | |
&& | |
(a = named_expression_rule(p)) // named_expression | |
&& | |
@@ -5652,7 +5653,7 @@ elif_stmt_rule(Parser *p) | |
asdl_stmt_seq* b; | |
stmt_ty c; | |
if ( | |
- (_keyword = _PyPegen_expect_token(p, 636)) // token='elif' | |
+ (_keyword = _PyPegen_expect_token(p, 637)) // token='elif' | |
&& | |
(a = named_expression_rule(p)) // named_expression | |
&& | |
@@ -5697,7 +5698,7 @@ elif_stmt_rule(Parser *p) | |
asdl_stmt_seq* b; | |
void *c; | |
if ( | |
- (_keyword = _PyPegen_expect_token(p, 636)) // token='elif' | |
+ (_keyword = _PyPegen_expect_token(p, 637)) // token='elif' | |
&& | |
(a = named_expression_rule(p)) // named_expression | |
&& | |
@@ -5779,7 +5780,7 @@ else_block_rule(Parser *p) | |
Token * _literal; | |
asdl_stmt_seq* b; | |
if ( | |
- (_keyword = _PyPegen_expect_token(p, 637)) // token='else' | |
+ (_keyword = _PyPegen_expect_token(p, 638)) // token='else' | |
&& | |
(_literal = _PyPegen_expect_forced_token(p, 11, ":")) // forced_token=':' | |
&& | |
@@ -5859,7 +5860,7 @@ while_stmt_rule(Parser *p) | |
asdl_stmt_seq* b; | |
void *c; | |
if ( | |
- (_keyword = _PyPegen_expect_token(p, 639)) // token='while' | |
+ (_keyword = _PyPegen_expect_token(p, 640)) // token='while' | |
&& | |
(a = named_expression_rule(p)) // named_expression | |
&& | |
@@ -5960,11 +5961,11 @@ for_stmt_rule(Parser *p) | |
expr_ty t; | |
void *tc; | |
if ( | |
- (_keyword = _PyPegen_expect_token(p, 640)) // token='for' | |
+ (_keyword = _PyPegen_expect_token(p, 641)) // token='for' | |
&& | |
(t = star_targets_rule(p)) // star_targets | |
&& | |
- (_keyword_1 = _PyPegen_expect_token(p, 641)) // token='in' | |
+ (_keyword_1 = _PyPegen_expect_token(p, 642)) // token='in' | |
&& | |
(_cut_var = 1) | |
&& | |
@@ -6024,11 +6025,11 @@ for_stmt_rule(Parser *p) | |
if ( | |
(async_var = _PyPegen_expect_token(p, ASYNC)) // token='ASYNC' | |
&& | |
- (_keyword = _PyPegen_expect_token(p, 640)) // token='for' | |
+ (_keyword = _PyPegen_expect_token(p, 641)) // token='for' | |
&& | |
(t = star_targets_rule(p)) // star_targets | |
&& | |
- (_keyword_1 = _PyPegen_expect_token(p, 641)) // token='in' | |
+ (_keyword_1 = _PyPegen_expect_token(p, 642)) // token='in' | |
&& | |
(_cut_var = 1) | |
&& | |
@@ -6157,7 +6158,7 @@ with_stmt_rule(Parser *p) | |
asdl_withitem_seq* a; | |
asdl_stmt_seq* b; | |
if ( | |
- (_keyword = _PyPegen_expect_token(p, 612)) // token='with' | |
+ (_keyword = _PyPegen_expect_token(p, 613)) // token='with' | |
&& | |
(_literal = _PyPegen_expect_token(p, 7)) // token='(' | |
&& | |
@@ -6206,7 +6207,7 @@ with_stmt_rule(Parser *p) | |
asdl_stmt_seq* b; | |
void *tc; | |
if ( | |
- (_keyword = _PyPegen_expect_token(p, 612)) // token='with' | |
+ (_keyword = _PyPegen_expect_token(p, 613)) // token='with' | |
&& | |
(a = (asdl_withitem_seq*)_gather_52_rule(p)) // ','.with_item+ | |
&& | |
@@ -6257,7 +6258,7 @@ with_stmt_rule(Parser *p) | |
if ( | |
(async_var = _PyPegen_expect_token(p, ASYNC)) // token='ASYNC' | |
&& | |
- (_keyword = _PyPegen_expect_token(p, 612)) // token='with' | |
+ (_keyword = _PyPegen_expect_token(p, 613)) // token='with' | |
&& | |
(_literal = _PyPegen_expect_token(p, 7)) // token='(' | |
&& | |
@@ -6309,7 +6310,7 @@ with_stmt_rule(Parser *p) | |
if ( | |
(async_var = _PyPegen_expect_token(p, ASYNC)) // token='ASYNC' | |
&& | |
- (_keyword = _PyPegen_expect_token(p, 612)) // token='with' | |
+ (_keyword = _PyPegen_expect_token(p, 613)) // token='with' | |
&& | |
(a = (asdl_withitem_seq*)_gather_56_rule(p)) // ','.with_item+ | |
&& | |
@@ -6396,7 +6397,7 @@ with_item_rule(Parser *p) | |
if ( | |
(e = expression_rule(p)) // expression | |
&& | |
- (_keyword = _PyPegen_expect_token(p, 632)) // token='as' | |
+ (_keyword = _PyPegen_expect_token(p, 633)) // token='as' | |
&& | |
(t = star_target_rule(p)) // star_target | |
&& | |
@@ -6522,7 +6523,7 @@ try_stmt_rule(Parser *p) | |
asdl_stmt_seq* b; | |
asdl_stmt_seq* f; | |
if ( | |
- (_keyword = _PyPegen_expect_token(p, 618)) // token='try' | |
+ (_keyword = _PyPegen_expect_token(p, 619)) // token='try' | |
&& | |
(_literal = _PyPegen_expect_forced_token(p, 11, ":")) // forced_token=':' | |
&& | |
@@ -6566,7 +6567,7 @@ try_stmt_rule(Parser *p) | |
asdl_excepthandler_seq* ex; | |
void *f; | |
if ( | |
- (_keyword = _PyPegen_expect_token(p, 618)) // token='try' | |
+ (_keyword = _PyPegen_expect_token(p, 619)) // token='try' | |
&& | |
(_literal = _PyPegen_expect_forced_token(p, 11, ":")) // forced_token=':' | |
&& | |
@@ -6614,7 +6615,7 @@ try_stmt_rule(Parser *p) | |
asdl_excepthandler_seq* ex; | |
void *f; | |
if ( | |
- (_keyword = _PyPegen_expect_token(p, 618)) // token='try' | |
+ (_keyword = _PyPegen_expect_token(p, 619)) // token='try' | |
&& | |
(_literal = _PyPegen_expect_forced_token(p, 11, ":")) // forced_token=':' | |
&& | |
@@ -6713,7 +6714,7 @@ except_block_rule(Parser *p) | |
expr_ty e; | |
void *t; | |
if ( | |
- (_keyword = _PyPegen_expect_token(p, 629)) // token='except' | |
+ (_keyword = _PyPegen_expect_token(p, 630)) // token='except' | |
&& | |
(e = expression_rule(p)) // expression | |
&& | |
@@ -6756,7 +6757,7 @@ except_block_rule(Parser *p) | |
Token * _literal; | |
asdl_stmt_seq* b; | |
if ( | |
- (_keyword = _PyPegen_expect_token(p, 629)) // token='except' | |
+ (_keyword = _PyPegen_expect_token(p, 630)) // token='except' | |
&& | |
(_literal = _PyPegen_expect_token(p, 11)) // token=':' | |
&& | |
@@ -6868,7 +6869,7 @@ except_star_block_rule(Parser *p) | |
expr_ty e; | |
void *t; | |
if ( | |
- (_keyword = _PyPegen_expect_token(p, 629)) // token='except' | |
+ (_keyword = _PyPegen_expect_token(p, 630)) // token='except' | |
&& | |
(_literal = _PyPegen_expect_token(p, 16)) // token='*' | |
&& | |
@@ -6971,7 +6972,7 @@ finally_block_rule(Parser *p) | |
Token * _literal; | |
asdl_stmt_seq* a; | |
if ( | |
- (_keyword = _PyPegen_expect_token(p, 625)) // token='finally' | |
+ (_keyword = _PyPegen_expect_token(p, 626)) // token='finally' | |
&& | |
(_literal = _PyPegen_expect_forced_token(p, 11, ":")) // forced_token=':' | |
&& | |
@@ -7283,7 +7284,7 @@ guard_rule(Parser *p) | |
Token * _keyword; | |
expr_ty guard; | |
if ( | |
- (_keyword = _PyPegen_expect_token(p, 634)) // token='if' | |
+ (_keyword = _PyPegen_expect_token(p, 635)) // token='if' | |
&& | |
(guard = named_expression_rule(p)) // named_expression | |
) | |
@@ -7481,7 +7482,7 @@ as_pattern_rule(Parser *p) | |
if ( | |
(pattern = or_pattern_rule(p)) // or_pattern | |
&& | |
- (_keyword = _PyPegen_expect_token(p, 632)) // token='as' | |
+ (_keyword = _PyPegen_expect_token(p, 633)) // token='as' | |
&& | |
(target = pattern_capture_target_rule(p)) // pattern_capture_target | |
) | |
@@ -7913,7 +7914,7 @@ literal_pattern_rule(Parser *p) | |
D(fprintf(stderr, "%*c> literal_pattern[%d-%d]: %s\n", p->level, ' ', _mark, p->mark, "'None'")); | |
Token * _keyword; | |
if ( | |
- (_keyword = _PyPegen_expect_token(p, 601)) // token='None' | |
+ (_keyword = _PyPegen_expect_token(p, 602)) // token='None' | |
) | |
{ | |
D(fprintf(stderr, "%*c+ literal_pattern[%d-%d]: %s succeeded!\n", p->level, ' ', _mark, p->mark, "'None'")); | |
@@ -7946,7 +7947,7 @@ literal_pattern_rule(Parser *p) | |
D(fprintf(stderr, "%*c> literal_pattern[%d-%d]: %s\n", p->level, ' ', _mark, p->mark, "'True'")); | |
Token * _keyword; | |
if ( | |
- (_keyword = _PyPegen_expect_token(p, 600)) // token='True' | |
+ (_keyword = _PyPegen_expect_token(p, 601)) // token='True' | |
) | |
{ | |
D(fprintf(stderr, "%*c+ literal_pattern[%d-%d]: %s succeeded!\n", p->level, ' ', _mark, p->mark, "'True'")); | |
@@ -7979,7 +7980,7 @@ literal_pattern_rule(Parser *p) | |
D(fprintf(stderr, "%*c> literal_pattern[%d-%d]: %s\n", p->level, ' ', _mark, p->mark, "'False'")); | |
Token * _keyword; | |
if ( | |
- (_keyword = _PyPegen_expect_token(p, 602)) // token='False' | |
+ (_keyword = _PyPegen_expect_token(p, 603)) // token='False' | |
) | |
{ | |
D(fprintf(stderr, "%*c+ literal_pattern[%d-%d]: %s succeeded!\n", p->level, ' ', _mark, p->mark, "'False'")); | |
@@ -8106,7 +8107,7 @@ literal_expr_rule(Parser *p) | |
D(fprintf(stderr, "%*c> literal_expr[%d-%d]: %s\n", p->level, ' ', _mark, p->mark, "'None'")); | |
Token * _keyword; | |
if ( | |
- (_keyword = _PyPegen_expect_token(p, 601)) // token='None' | |
+ (_keyword = _PyPegen_expect_token(p, 602)) // token='None' | |
) | |
{ | |
D(fprintf(stderr, "%*c+ literal_expr[%d-%d]: %s succeeded!\n", p->level, ' ', _mark, p->mark, "'None'")); | |
@@ -8139,7 +8140,7 @@ literal_expr_rule(Parser *p) | |
D(fprintf(stderr, "%*c> literal_expr[%d-%d]: %s\n", p->level, ' ', _mark, p->mark, "'True'")); | |
Token * _keyword; | |
if ( | |
- (_keyword = _PyPegen_expect_token(p, 600)) // token='True' | |
+ (_keyword = _PyPegen_expect_token(p, 601)) // token='True' | |
) | |
{ | |
D(fprintf(stderr, "%*c+ literal_expr[%d-%d]: %s succeeded!\n", p->level, ' ', _mark, p->mark, "'True'")); | |
@@ -8172,7 +8173,7 @@ literal_expr_rule(Parser *p) | |
D(fprintf(stderr, "%*c> literal_expr[%d-%d]: %s\n", p->level, ' ', _mark, p->mark, "'False'")); | |
Token * _keyword; | |
if ( | |
- (_keyword = _PyPegen_expect_token(p, 602)) // token='False' | |
+ (_keyword = _PyPegen_expect_token(p, 603)) // token='False' | |
) | |
{ | |
D(fprintf(stderr, "%*c+ literal_expr[%d-%d]: %s succeeded!\n", p->level, ' ', _mark, p->mark, "'False'")); | |
@@ -10301,11 +10302,11 @@ expression_rule(Parser *p) | |
if ( | |
(a = disjunction_rule(p)) // disjunction | |
&& | |
- (_keyword = _PyPegen_expect_token(p, 634)) // token='if' | |
+ (_keyword = _PyPegen_expect_token(p, 635)) // token='if' | |
&& | |
(b = disjunction_rule(p)) // disjunction | |
&& | |
- (_keyword_1 = _PyPegen_expect_token(p, 637)) // token='else' | |
+ (_keyword_1 = _PyPegen_expect_token(p, 638)) // token='else' | |
&& | |
(c = expression_rule(p)) // expression | |
) | |
@@ -11862,7 +11863,7 @@ notin_bitwise_or_rule(Parser *p) | |
if ( | |
(_keyword = _PyPegen_expect_token(p, 581)) // token='not' | |
&& | |
- (_keyword_1 = _PyPegen_expect_token(p, 641)) // token='in' | |
+ (_keyword_1 = _PyPegen_expect_token(p, 642)) // token='in' | |
&& | |
(a = bitwise_or_rule(p)) // bitwise_or | |
) | |
@@ -11909,7 +11910,7 @@ in_bitwise_or_rule(Parser *p) | |
Token * _keyword; | |
expr_ty a; | |
if ( | |
- (_keyword = _PyPegen_expect_token(p, 641)) // token='in' | |
+ (_keyword = _PyPegen_expect_token(p, 642)) // token='in' | |
&& | |
(a = bitwise_or_rule(p)) // bitwise_or | |
) | |
@@ -11933,7 +11934,7 @@ in_bitwise_or_rule(Parser *p) | |
return _res; | |
} | |
-// isnot_bitwise_or: 'is' 'not' bitwise_or | |
+// isnot_bitwise_or: 'is' 'not' bitwise_or | 'aint' bitwise_or | |
static CmpopExprPair* | |
isnot_bitwise_or_rule(Parser *p) | |
{ | |
@@ -11957,7 +11958,7 @@ isnot_bitwise_or_rule(Parser *p) | |
Token * _keyword_1; | |
expr_ty a; | |
if ( | |
- (_keyword = _PyPegen_expect_token(p, 582)) // token='is' | |
+ (_keyword = _PyPegen_expect_token(p, 583)) // token='is' | |
&& | |
(_keyword_1 = _PyPegen_expect_token(p, 581)) // token='not' | |
&& | |
@@ -11977,6 +11978,33 @@ isnot_bitwise_or_rule(Parser *p) | |
D(fprintf(stderr, "%*c%s isnot_bitwise_or[%d-%d]: %s failed!\n", p->level, ' ', | |
p->error_indicator ? "ERROR!" : "-", _mark, p->mark, "'is' 'not' bitwise_or")); | |
} | |
+ { // 'aint' bitwise_or | |
+ if (p->error_indicator) { | |
+ p->level--; | |
+ return NULL; | |
+ } | |
+ D(fprintf(stderr, "%*c> isnot_bitwise_or[%d-%d]: %s\n", p->level, ' ', _mark, p->mark, "'aint' bitwise_or")); | |
+ Token * _keyword; | |
+ expr_ty a; | |
+ if ( | |
+ (_keyword = _PyPegen_expect_token(p, 582)) // token='aint' | |
+ && | |
+ (a = bitwise_or_rule(p)) // bitwise_or | |
+ ) | |
+ { | |
+ D(fprintf(stderr, "%*c+ isnot_bitwise_or[%d-%d]: %s succeeded!\n", p->level, ' ', _mark, p->mark, "'aint' bitwise_or")); | |
+ _res = _PyPegen_cmpop_expr_pair ( p , IsNot , a ); | |
+ if (_res == NULL && PyErr_Occurred()) { | |
+ p->error_indicator = 1; | |
+ p->level--; | |
+ return NULL; | |
+ } | |
+ goto done; | |
+ } | |
+ p->mark = _mark; | |
+ D(fprintf(stderr, "%*c%s isnot_bitwise_or[%d-%d]: %s failed!\n", p->level, ' ', | |
+ p->error_indicator ? "ERROR!" : "-", _mark, p->mark, "'aint' bitwise_or")); | |
+ } | |
_res = NULL; | |
done: | |
p->level--; | |
@@ -12006,7 +12034,7 @@ is_bitwise_or_rule(Parser *p) | |
Token * _keyword; | |
expr_ty a; | |
if ( | |
- (_keyword = _PyPegen_expect_token(p, 582)) // token='is' | |
+ (_keyword = _PyPegen_expect_token(p, 583)) // token='is' | |
&& | |
(a = bitwise_or_rule(p)) // bitwise_or | |
) | |
@@ -13861,7 +13889,7 @@ atom_rule(Parser *p) | |
D(fprintf(stderr, "%*c> atom[%d-%d]: %s\n", p->level, ' ', _mark, p->mark, "'True'")); | |
Token * _keyword; | |
if ( | |
- (_keyword = _PyPegen_expect_token(p, 600)) // token='True' | |
+ (_keyword = _PyPegen_expect_token(p, 601)) // token='True' | |
) | |
{ | |
D(fprintf(stderr, "%*c+ atom[%d-%d]: %s succeeded!\n", p->level, ' ', _mark, p->mark, "'True'")); | |
@@ -13894,7 +13922,7 @@ atom_rule(Parser *p) | |
D(fprintf(stderr, "%*c> atom[%d-%d]: %s\n", p->level, ' ', _mark, p->mark, "'False'")); | |
Token * _keyword; | |
if ( | |
- (_keyword = _PyPegen_expect_token(p, 602)) // token='False' | |
+ (_keyword = _PyPegen_expect_token(p, 603)) // token='False' | |
) | |
{ | |
D(fprintf(stderr, "%*c+ atom[%d-%d]: %s succeeded!\n", p->level, ' ', _mark, p->mark, "'False'")); | |
@@ -13927,7 +13955,7 @@ atom_rule(Parser *p) | |
D(fprintf(stderr, "%*c> atom[%d-%d]: %s\n", p->level, ' ', _mark, p->mark, "'None'")); | |
Token * _keyword; | |
if ( | |
- (_keyword = _PyPegen_expect_token(p, 601)) // token='None' | |
+ (_keyword = _PyPegen_expect_token(p, 602)) // token='None' | |
) | |
{ | |
D(fprintf(stderr, "%*c+ atom[%d-%d]: %s succeeded!\n", p->level, ' ', _mark, p->mark, "'None'")); | |
@@ -14197,7 +14225,7 @@ lambdef_rule(Parser *p) | |
void *a; | |
expr_ty b; | |
if ( | |
- (_keyword = _PyPegen_expect_token(p, 586)) // token='lambda' | |
+ (_keyword = _PyPegen_expect_token(p, 587)) // token='lambda' | |
&& | |
(a = lambda_params_rule(p), !p->error_indicator) // lambda_params? | |
&& | |
@@ -15689,11 +15717,11 @@ for_if_clause_rule(Parser *p) | |
if ( | |
(async_var = _PyPegen_expect_token(p, ASYNC)) // token='ASYNC' | |
&& | |
- (_keyword = _PyPegen_expect_token(p, 640)) // token='for' | |
+ (_keyword = _PyPegen_expect_token(p, 641)) // token='for' | |
&& | |
(a = star_targets_rule(p)) // star_targets | |
&& | |
- (_keyword_1 = _PyPegen_expect_token(p, 641)) // token='in' | |
+ (_keyword_1 = _PyPegen_expect_token(p, 642)) // token='in' | |
&& | |
(_cut_var = 1) | |
&& | |
@@ -15732,11 +15760,11 @@ for_if_clause_rule(Parser *p) | |
expr_ty b; | |
asdl_expr_seq* c; | |
if ( | |
- (_keyword = _PyPegen_expect_token(p, 640)) // token='for' | |
+ (_keyword = _PyPegen_expect_token(p, 641)) // token='for' | |
&& | |
(a = star_targets_rule(p)) // star_targets | |
&& | |
- (_keyword_1 = _PyPegen_expect_token(p, 641)) // token='in' | |
+ (_keyword_1 = _PyPegen_expect_token(p, 642)) // token='in' | |
&& | |
(_cut_var = 1) | |
&& | |
@@ -18935,11 +18963,11 @@ expression_without_invalid_rule(Parser *p) | |
if ( | |
(a = disjunction_rule(p)) // disjunction | |
&& | |
- (_keyword = _PyPegen_expect_token(p, 634)) // token='if' | |
+ (_keyword = _PyPegen_expect_token(p, 635)) // token='if' | |
&& | |
(b = disjunction_rule(p)) // disjunction | |
&& | |
- (_keyword_1 = _PyPegen_expect_token(p, 637)) // token='else' | |
+ (_keyword_1 = _PyPegen_expect_token(p, 638)) // token='else' | |
&& | |
(c = expression_rule(p)) // expression | |
) | |
@@ -19116,7 +19144,7 @@ invalid_expression_rule(Parser *p) | |
if ( | |
(a = disjunction_rule(p)) // disjunction | |
&& | |
- (_keyword = _PyPegen_expect_token(p, 634)) // token='if' | |
+ (_keyword = _PyPegen_expect_token(p, 635)) // token='if' | |
&& | |
(b = disjunction_rule(p)) // disjunction | |
&& | |
@@ -19584,7 +19612,7 @@ invalid_del_stmt_rule(Parser *p) | |
Token * _keyword; | |
expr_ty a; | |
if ( | |
- (_keyword = _PyPegen_expect_token(p, 603)) // token='del' | |
+ (_keyword = _PyPegen_expect_token(p, 604)) // token='del' | |
&& | |
(a = star_expressions_rule(p)) // star_expressions | |
) | |
@@ -20344,7 +20372,7 @@ invalid_with_item_rule(Parser *p) | |
if ( | |
(expression_var = expression_rule(p)) // expression | |
&& | |
- (_keyword = _PyPegen_expect_token(p, 632)) // token='as' | |
+ (_keyword = _PyPegen_expect_token(p, 633)) // token='as' | |
&& | |
(a = expression_rule(p)) // expression | |
&& | |
@@ -20397,7 +20425,7 @@ invalid_for_target_rule(Parser *p) | |
if ( | |
(_opt_var = _PyPegen_expect_token(p, ASYNC), !p->error_indicator) // ASYNC? | |
&& | |
- (_keyword = _PyPegen_expect_token(p, 640)) // token='for' | |
+ (_keyword = _PyPegen_expect_token(p, 641)) // token='for' | |
&& | |
(a = star_expressions_rule(p)) // star_expressions | |
) | |
@@ -20584,7 +20612,7 @@ invalid_with_stmt_rule(Parser *p) | |
if ( | |
(_opt_var = _PyPegen_expect_token(p, ASYNC), !p->error_indicator) // ASYNC? | |
&& | |
- (_keyword = _PyPegen_expect_token(p, 612)) // token='with' | |
+ (_keyword = _PyPegen_expect_token(p, 613)) // token='with' | |
&& | |
(_gather_170_var = _gather_170_rule(p)) // ','.(expression ['as' star_target])+ | |
&& | |
@@ -20617,7 +20645,7 @@ invalid_with_stmt_rule(Parser *p) | |
if ( | |
(_opt_var = _PyPegen_expect_token(p, ASYNC), !p->error_indicator) // ASYNC? | |
&& | |
- (_keyword = _PyPegen_expect_token(p, 612)) // token='with' | |
+ (_keyword = _PyPegen_expect_token(p, 613)) // token='with' | |
&& | |
(_literal = _PyPegen_expect_token(p, 7)) // token='(' | |
&& | |
@@ -20675,7 +20703,7 @@ invalid_with_stmt_indent_rule(Parser *p) | |
if ( | |
(_opt_var = _PyPegen_expect_token(p, ASYNC), !p->error_indicator) // ASYNC? | |
&& | |
- (a = _PyPegen_expect_token(p, 612)) // token='with' | |
+ (a = _PyPegen_expect_token(p, 613)) // token='with' | |
&& | |
(_gather_174_var = _gather_174_rule(p)) // ','.(expression ['as' star_target])+ | |
&& | |
@@ -20718,7 +20746,7 @@ invalid_with_stmt_indent_rule(Parser *p) | |
if ( | |
(_opt_var = _PyPegen_expect_token(p, ASYNC), !p->error_indicator) // ASYNC? | |
&& | |
- (a = _PyPegen_expect_token(p, 612)) // token='with' | |
+ (a = _PyPegen_expect_token(p, 613)) // token='with' | |
&& | |
(_literal = _PyPegen_expect_token(p, 7)) // token='(' | |
&& | |
@@ -20781,7 +20809,7 @@ invalid_try_stmt_rule(Parser *p) | |
Token * a; | |
Token * newline_var; | |
if ( | |
- (a = _PyPegen_expect_token(p, 618)) // token='try' | |
+ (a = _PyPegen_expect_token(p, 619)) // token='try' | |
&& | |
(_literal = _PyPegen_expect_token(p, 11)) // token=':' | |
&& | |
@@ -20813,7 +20841,7 @@ invalid_try_stmt_rule(Parser *p) | |
Token * _literal; | |
asdl_stmt_seq* block_var; | |
if ( | |
- (_keyword = _PyPegen_expect_token(p, 618)) // token='try' | |
+ (_keyword = _PyPegen_expect_token(p, 619)) // token='try' | |
&& | |
(_literal = _PyPegen_expect_token(p, 11)) // token=':' | |
&& | |
@@ -20847,7 +20875,7 @@ invalid_try_stmt_rule(Parser *p) | |
asdl_seq * _loop0_181_var; | |
void *_tmp_180_var; | |
if ( | |
- (_keyword = _PyPegen_expect_token(p, 618)) // token='try' | |
+ (_keyword = _PyPegen_expect_token(p, 619)) // token='try' | |
&& | |
(_literal = _PyPegen_expect_token(p, 11)) // token=':' | |
&& | |
@@ -20911,7 +20939,7 @@ invalid_except_stmt_rule(Parser *p) | |
expr_ty a; | |
expr_ty expressions_var; | |
if ( | |
- (_keyword = _PyPegen_expect_token(p, 629)) // token='except' | |
+ (_keyword = _PyPegen_expect_token(p, 630)) // token='except' | |
&& | |
(_opt_var = _PyPegen_expect_token(p, 16), !p->error_indicator) // '*'? | |
&& | |
@@ -20953,7 +20981,7 @@ invalid_except_stmt_rule(Parser *p) | |
expr_ty expression_var; | |
Token * newline_var; | |
if ( | |
- (a = _PyPegen_expect_token(p, 629)) // token='except' | |
+ (a = _PyPegen_expect_token(p, 630)) // token='except' | |
&& | |
(_opt_var = _PyPegen_expect_token(p, 16), !p->error_indicator) // '*'? | |
&& | |
@@ -20986,7 +21014,7 @@ invalid_except_stmt_rule(Parser *p) | |
Token * a; | |
Token * newline_var; | |
if ( | |
- (a = _PyPegen_expect_token(p, 629)) // token='except' | |
+ (a = _PyPegen_expect_token(p, 630)) // token='except' | |
&& | |
(newline_var = _PyPegen_expect_token(p, NEWLINE)) // token='NEWLINE' | |
) | |
@@ -21014,7 +21042,7 @@ invalid_except_stmt_rule(Parser *p) | |
void *_tmp_184_var; | |
Token * a; | |
if ( | |
- (a = _PyPegen_expect_token(p, 629)) // token='except' | |
+ (a = _PyPegen_expect_token(p, 630)) // token='except' | |
&& | |
(_literal = _PyPegen_expect_token(p, 16)) // token='*' | |
&& | |
@@ -21064,7 +21092,7 @@ invalid_finally_stmt_rule(Parser *p) | |
Token * a; | |
Token * newline_var; | |
if ( | |
- (a = _PyPegen_expect_token(p, 625)) // token='finally' | |
+ (a = _PyPegen_expect_token(p, 626)) // token='finally' | |
&& | |
(_literal = _PyPegen_expect_token(p, 11)) // token=':' | |
&& | |
@@ -21121,7 +21149,7 @@ invalid_except_stmt_indent_rule(Parser *p) | |
expr_ty expression_var; | |
Token * newline_var; | |
if ( | |
- (a = _PyPegen_expect_token(p, 629)) // token='except' | |
+ (a = _PyPegen_expect_token(p, 630)) // token='except' | |
&& | |
(expression_var = expression_rule(p)) // expression | |
&& | |
@@ -21157,7 +21185,7 @@ invalid_except_stmt_indent_rule(Parser *p) | |
Token * a; | |
Token * newline_var; | |
if ( | |
- (a = _PyPegen_expect_token(p, 629)) // token='except' | |
+ (a = _PyPegen_expect_token(p, 630)) // token='except' | |
&& | |
(_literal = _PyPegen_expect_token(p, 11)) // token=':' | |
&& | |
@@ -21214,7 +21242,7 @@ invalid_except_star_stmt_indent_rule(Parser *p) | |
expr_ty expression_var; | |
Token * newline_var; | |
if ( | |
- (a = _PyPegen_expect_token(p, 629)) // token='except' | |
+ (a = _PyPegen_expect_token(p, 630)) // token='except' | |
&& | |
(_literal = _PyPegen_expect_token(p, 16)) // token='*' | |
&& | |
@@ -21454,7 +21482,7 @@ invalid_as_pattern_rule(Parser *p) | |
if ( | |
(or_pattern_var = or_pattern_rule(p)) // or_pattern | |
&& | |
- (_keyword = _PyPegen_expect_token(p, 632)) // token='as' | |
+ (_keyword = _PyPegen_expect_token(p, 633)) // token='as' | |
&& | |
(a = _PyPegen_expect_soft_keyword(p, "_")) // soft_keyword='"_"' | |
) | |
@@ -21484,7 +21512,7 @@ invalid_as_pattern_rule(Parser *p) | |
if ( | |
(or_pattern_var = or_pattern_rule(p)) // or_pattern | |
&& | |
- (_keyword = _PyPegen_expect_token(p, 632)) // token='as' | |
+ (_keyword = _PyPegen_expect_token(p, 633)) // token='as' | |
&& | |
_PyPegen_lookahead_with_name(0, _PyPegen_name_token, p) | |
&& | |
@@ -21641,7 +21669,7 @@ invalid_if_stmt_rule(Parser *p) | |
expr_ty named_expression_var; | |
Token * newline_var; | |
if ( | |
- (_keyword = _PyPegen_expect_token(p, 634)) // token='if' | |
+ (_keyword = _PyPegen_expect_token(p, 635)) // token='if' | |
&& | |
(named_expression_var = named_expression_rule(p)) // named_expression | |
&& | |
@@ -21672,7 +21700,7 @@ invalid_if_stmt_rule(Parser *p) | |
expr_ty a_1; | |
Token * newline_var; | |
if ( | |
- (a = _PyPegen_expect_token(p, 634)) // token='if' | |
+ (a = _PyPegen_expect_token(p, 635)) // token='if' | |
&& | |
(a_1 = named_expression_rule(p)) // named_expression | |
&& | |
@@ -21728,7 +21756,7 @@ invalid_elif_stmt_rule(Parser *p) | |
expr_ty named_expression_var; | |
Token * newline_var; | |
if ( | |
- (_keyword = _PyPegen_expect_token(p, 636)) // token='elif' | |
+ (_keyword = _PyPegen_expect_token(p, 637)) // token='elif' | |
&& | |
(named_expression_var = named_expression_rule(p)) // named_expression | |
&& | |
@@ -21759,7 +21787,7 @@ invalid_elif_stmt_rule(Parser *p) | |
expr_ty named_expression_var; | |
Token * newline_var; | |
if ( | |
- (a = _PyPegen_expect_token(p, 636)) // token='elif' | |
+ (a = _PyPegen_expect_token(p, 637)) // token='elif' | |
&& | |
(named_expression_var = named_expression_rule(p)) // named_expression | |
&& | |
@@ -21813,7 +21841,7 @@ invalid_else_stmt_rule(Parser *p) | |
Token * a; | |
Token * newline_var; | |
if ( | |
- (a = _PyPegen_expect_token(p, 637)) // token='else' | |
+ (a = _PyPegen_expect_token(p, 638)) // token='else' | |
&& | |
(_literal = _PyPegen_expect_token(p, 11)) // token=':' | |
&& | |
@@ -21867,7 +21895,7 @@ invalid_while_stmt_rule(Parser *p) | |
expr_ty named_expression_var; | |
Token * newline_var; | |
if ( | |
- (_keyword = _PyPegen_expect_token(p, 639)) // token='while' | |
+ (_keyword = _PyPegen_expect_token(p, 640)) // token='while' | |
&& | |
(named_expression_var = named_expression_rule(p)) // named_expression | |
&& | |
@@ -21898,7 +21926,7 @@ invalid_while_stmt_rule(Parser *p) | |
expr_ty named_expression_var; | |
Token * newline_var; | |
if ( | |
- (a = _PyPegen_expect_token(p, 639)) // token='while' | |
+ (a = _PyPegen_expect_token(p, 640)) // token='while' | |
&& | |
(named_expression_var = named_expression_rule(p)) // named_expression | |
&& | |
@@ -21959,11 +21987,11 @@ invalid_for_stmt_rule(Parser *p) | |
if ( | |
(_opt_var = _PyPegen_expect_token(p, ASYNC), !p->error_indicator) // ASYNC? | |
&& | |
- (a = _PyPegen_expect_token(p, 640)) // token='for' | |
+ (a = _PyPegen_expect_token(p, 641)) // token='for' | |
&& | |
(star_targets_var = star_targets_rule(p)) // star_targets | |
&& | |
- (_keyword = _PyPegen_expect_token(p, 641)) // token='in' | |
+ (_keyword = _PyPegen_expect_token(p, 642)) // token='in' | |
&& | |
(star_expressions_var = star_expressions_rule(p)) // star_expressions | |
&& | |
@@ -22029,7 +22057,7 @@ invalid_def_raw_rule(Parser *p) | |
if ( | |
(_opt_var = _PyPegen_expect_token(p, ASYNC), !p->error_indicator) // ASYNC? | |
&& | |
- (a = _PyPegen_expect_token(p, 642)) // token='def' | |
+ (a = _PyPegen_expect_token(p, 643)) // token='def' | |
&& | |
(name_var = _PyPegen_name_token(p)) // NAME | |
&& | |
@@ -22094,7 +22122,7 @@ invalid_class_def_raw_rule(Parser *p) | |
expr_ty name_var; | |
Token * newline_var; | |
if ( | |
- (a = _PyPegen_expect_token(p, 643)) // token='class' | |
+ (a = _PyPegen_expect_token(p, 644)) // token='class' | |
&& | |
(name_var = _PyPegen_name_token(p)) // NAME | |
&& | |
@@ -22754,7 +22782,7 @@ _tmp_7_rule(Parser *p) | |
D(fprintf(stderr, "%*c> _tmp_7[%d-%d]: %s\n", p->level, ' ', _mark, p->mark, "'def'")); | |
Token * _keyword; | |
if ( | |
- (_keyword = _PyPegen_expect_token(p, 642)) // token='def' | |
+ (_keyword = _PyPegen_expect_token(p, 643)) // token='def' | |
) | |
{ | |
D(fprintf(stderr, "%*c+ _tmp_7[%d-%d]: %s succeeded!\n", p->level, ' ', _mark, p->mark, "'def'")); | |
@@ -22831,7 +22859,7 @@ _tmp_8_rule(Parser *p) | |
D(fprintf(stderr, "%*c> _tmp_8[%d-%d]: %s\n", p->level, ' ', _mark, p->mark, "'class'")); | |
Token * _keyword; | |
if ( | |
- (_keyword = _PyPegen_expect_token(p, 643)) // token='class' | |
+ (_keyword = _PyPegen_expect_token(p, 644)) // token='class' | |
) | |
{ | |
D(fprintf(stderr, "%*c+ _tmp_8[%d-%d]: %s succeeded!\n", p->level, ' ', _mark, p->mark, "'class'")); | |
@@ -22889,7 +22917,7 @@ _tmp_9_rule(Parser *p) | |
D(fprintf(stderr, "%*c> _tmp_9[%d-%d]: %s\n", p->level, ' ', _mark, p->mark, "'with'")); | |
Token * _keyword; | |
if ( | |
- (_keyword = _PyPegen_expect_token(p, 612)) // token='with' | |
+ (_keyword = _PyPegen_expect_token(p, 613)) // token='with' | |
) | |
{ | |
D(fprintf(stderr, "%*c+ _tmp_9[%d-%d]: %s succeeded!\n", p->level, ' ', _mark, p->mark, "'with'")); | |
@@ -22947,7 +22975,7 @@ _tmp_10_rule(Parser *p) | |
D(fprintf(stderr, "%*c> _tmp_10[%d-%d]: %s\n", p->level, ' ', _mark, p->mark, "'for'")); | |
Token * _keyword; | |
if ( | |
- (_keyword = _PyPegen_expect_token(p, 640)) // token='for' | |
+ (_keyword = _PyPegen_expect_token(p, 641)) // token='for' | |
) | |
{ | |
D(fprintf(stderr, "%*c+ _tmp_10[%d-%d]: %s succeeded!\n", p->level, ' ', _mark, p->mark, "'for'")); | |
@@ -24014,7 +24042,7 @@ _tmp_28_rule(Parser *p) | |
Token * _keyword; | |
expr_ty z; | |
if ( | |
- (_keyword = _PyPegen_expect_token(p, 632)) // token='as' | |
+ (_keyword = _PyPegen_expect_token(p, 633)) // token='as' | |
&& | |
(z = _PyPegen_name_token(p)) // NAME | |
) | |
@@ -24181,7 +24209,7 @@ _tmp_31_rule(Parser *p) | |
Token * _keyword; | |
expr_ty z; | |
if ( | |
- (_keyword = _PyPegen_expect_token(p, 632)) // token='as' | |
+ (_keyword = _PyPegen_expect_token(p, 633)) // token='as' | |
&& | |
(z = _PyPegen_name_token(p)) // NAME | |
) | |
@@ -26152,7 +26180,7 @@ _tmp_61_rule(Parser *p) | |
Token * _keyword; | |
expr_ty z; | |
if ( | |
- (_keyword = _PyPegen_expect_token(p, 632)) // token='as' | |
+ (_keyword = _PyPegen_expect_token(p, 633)) // token='as' | |
&& | |
(z = _PyPegen_name_token(p)) // NAME | |
) | |
@@ -26199,7 +26227,7 @@ _tmp_62_rule(Parser *p) | |
Token * _keyword; | |
expr_ty z; | |
if ( | |
- (_keyword = _PyPegen_expect_token(p, 632)) // token='as' | |
+ (_keyword = _PyPegen_expect_token(p, 633)) // token='as' | |
&& | |
(z = _PyPegen_name_token(p)) // NAME | |
) | |
@@ -31409,7 +31437,7 @@ _tmp_144_rule(Parser *p) | |
D(fprintf(stderr, "%*c> _tmp_144[%d-%d]: %s\n", p->level, ' ', _mark, p->mark, "'True'")); | |
Token * _keyword; | |
if ( | |
- (_keyword = _PyPegen_expect_token(p, 600)) // token='True' | |
+ (_keyword = _PyPegen_expect_token(p, 601)) // token='True' | |
) | |
{ | |
D(fprintf(stderr, "%*c+ _tmp_144[%d-%d]: %s succeeded!\n", p->level, ' ', _mark, p->mark, "'True'")); | |
@@ -31428,7 +31456,7 @@ _tmp_144_rule(Parser *p) | |
D(fprintf(stderr, "%*c> _tmp_144[%d-%d]: %s\n", p->level, ' ', _mark, p->mark, "'False'")); | |
Token * _keyword; | |
if ( | |
- (_keyword = _PyPegen_expect_token(p, 602)) // token='False' | |
+ (_keyword = _PyPegen_expect_token(p, 603)) // token='False' | |
) | |
{ | |
D(fprintf(stderr, "%*c+ _tmp_144[%d-%d]: %s succeeded!\n", p->level, ' ', _mark, p->mark, "'False'")); | |
@@ -31447,7 +31475,7 @@ _tmp_144_rule(Parser *p) | |
D(fprintf(stderr, "%*c> _tmp_144[%d-%d]: %s\n", p->level, ' ', _mark, p->mark, "'None'")); | |
Token * _keyword; | |
if ( | |
- (_keyword = _PyPegen_expect_token(p, 601)) // token='None' | |
+ (_keyword = _PyPegen_expect_token(p, 602)) // token='None' | |
) | |
{ | |
D(fprintf(stderr, "%*c+ _tmp_144[%d-%d]: %s succeeded!\n", p->level, ' ', _mark, p->mark, "'None'")); | |
@@ -31589,7 +31617,7 @@ _tmp_147_rule(Parser *p) | |
D(fprintf(stderr, "%*c> _tmp_147[%d-%d]: %s\n", p->level, ' ', _mark, p->mark, "'else'")); | |
Token * _keyword; | |
if ( | |
- (_keyword = _PyPegen_expect_token(p, 637)) // token='else' | |
+ (_keyword = _PyPegen_expect_token(p, 638)) // token='else' | |
) | |
{ | |
D(fprintf(stderr, "%*c+ _tmp_147[%d-%d]: %s succeeded!\n", p->level, ' ', _mark, p->mark, "'else'")); | |
@@ -31762,7 +31790,7 @@ _tmp_149_rule(Parser *p) | |
D(fprintf(stderr, "%*c> _tmp_149[%d-%d]: %s\n", p->level, ' ', _mark, p->mark, "'True'")); | |
Token * _keyword; | |
if ( | |
- (_keyword = _PyPegen_expect_token(p, 600)) // token='True' | |
+ (_keyword = _PyPegen_expect_token(p, 601)) // token='True' | |
) | |
{ | |
D(fprintf(stderr, "%*c+ _tmp_149[%d-%d]: %s succeeded!\n", p->level, ' ', _mark, p->mark, "'True'")); | |
@@ -31781,7 +31809,7 @@ _tmp_149_rule(Parser *p) | |
D(fprintf(stderr, "%*c> _tmp_149[%d-%d]: %s\n", p->level, ' ', _mark, p->mark, "'None'")); | |
Token * _keyword; | |
if ( | |
- (_keyword = _PyPegen_expect_token(p, 601)) // token='None' | |
+ (_keyword = _PyPegen_expect_token(p, 602)) // token='None' | |
) | |
{ | |
D(fprintf(stderr, "%*c+ _tmp_149[%d-%d]: %s succeeded!\n", p->level, ' ', _mark, p->mark, "'None'")); | |
@@ -31800,7 +31828,7 @@ _tmp_149_rule(Parser *p) | |
D(fprintf(stderr, "%*c> _tmp_149[%d-%d]: %s\n", p->level, ' ', _mark, p->mark, "'False'")); | |
Token * _keyword; | |
if ( | |
- (_keyword = _PyPegen_expect_token(p, 602)) // token='False' | |
+ (_keyword = _PyPegen_expect_token(p, 603)) // token='False' | |
) | |
{ | |
D(fprintf(stderr, "%*c+ _tmp_149[%d-%d]: %s succeeded!\n", p->level, ' ', _mark, p->mark, "'False'")); | |
@@ -33652,7 +33680,7 @@ _tmp_178_rule(Parser *p) | |
D(fprintf(stderr, "%*c> _tmp_178[%d-%d]: %s\n", p->level, ' ', _mark, p->mark, "'except'")); | |
Token * _keyword; | |
if ( | |
- (_keyword = _PyPegen_expect_token(p, 629)) // token='except' | |
+ (_keyword = _PyPegen_expect_token(p, 630)) // token='except' | |
) | |
{ | |
D(fprintf(stderr, "%*c+ _tmp_178[%d-%d]: %s succeeded!\n", p->level, ' ', _mark, p->mark, "'except'")); | |
@@ -33671,7 +33699,7 @@ _tmp_178_rule(Parser *p) | |
D(fprintf(stderr, "%*c> _tmp_178[%d-%d]: %s\n", p->level, ' ', _mark, p->mark, "'finally'")); | |
Token * _keyword; | |
if ( | |
- (_keyword = _PyPegen_expect_token(p, 625)) // token='finally' | |
+ (_keyword = _PyPegen_expect_token(p, 626)) // token='finally' | |
) | |
{ | |
D(fprintf(stderr, "%*c+ _tmp_178[%d-%d]: %s succeeded!\n", p->level, ' ', _mark, p->mark, "'finally'")); | |
@@ -33907,7 +33935,7 @@ _tmp_182_rule(Parser *p) | |
Token * _keyword; | |
expr_ty name_var; | |
if ( | |
- (_keyword = _PyPegen_expect_token(p, 632)) // token='as' | |
+ (_keyword = _PyPegen_expect_token(p, 633)) // token='as' | |
&& | |
(name_var = _PyPegen_name_token(p)) // NAME | |
) | |
@@ -33949,7 +33977,7 @@ _tmp_183_rule(Parser *p) | |
Token * _keyword; | |
expr_ty name_var; | |
if ( | |
- (_keyword = _PyPegen_expect_token(p, 632)) // token='as' | |
+ (_keyword = _PyPegen_expect_token(p, 633)) // token='as' | |
&& | |
(name_var = _PyPegen_name_token(p)) // NAME | |
) | |
@@ -34049,7 +34077,7 @@ _tmp_185_rule(Parser *p) | |
Token * _keyword; | |
expr_ty name_var; | |
if ( | |
- (_keyword = _PyPegen_expect_token(p, 632)) // token='as' | |
+ (_keyword = _PyPegen_expect_token(p, 633)) // token='as' | |
&& | |
(name_var = _PyPegen_name_token(p)) // NAME | |
) | |
@@ -34091,7 +34119,7 @@ _tmp_186_rule(Parser *p) | |
Token * _keyword; | |
expr_ty name_var; | |
if ( | |
- (_keyword = _PyPegen_expect_token(p, 632)) // token='as' | |
+ (_keyword = _PyPegen_expect_token(p, 633)) // token='as' | |
&& | |
(name_var = _PyPegen_name_token(p)) // NAME | |
) | |
@@ -34842,7 +34870,7 @@ _tmp_201_rule(Parser *p) | |
Token * _keyword; | |
expr_ty z; | |
if ( | |
- (_keyword = _PyPegen_expect_token(p, 634)) // token='if' | |
+ (_keyword = _PyPegen_expect_token(p, 635)) // token='if' | |
&& | |
(z = disjunction_rule(p)) // disjunction | |
) | |
@@ -34889,7 +34917,7 @@ _tmp_202_rule(Parser *p) | |
Token * _keyword; | |
expr_ty z; | |
if ( | |
- (_keyword = _PyPegen_expect_token(p, 634)) // token='if' | |
+ (_keyword = _PyPegen_expect_token(p, 635)) // token='if' | |
&& | |
(z = disjunction_rule(p)) // disjunction | |
) | |
@@ -35606,7 +35634,7 @@ _tmp_217_rule(Parser *p) | |
Token * _keyword; | |
expr_ty star_target_var; | |
if ( | |
- (_keyword = _PyPegen_expect_token(p, 632)) // token='as' | |
+ (_keyword = _PyPegen_expect_token(p, 633)) // token='as' | |
&& | |
(star_target_var = star_target_rule(p)) // star_target | |
) | |
@@ -35648,7 +35676,7 @@ _tmp_218_rule(Parser *p) | |
Token * _keyword; | |
expr_ty star_target_var; | |
if ( | |
- (_keyword = _PyPegen_expect_token(p, 632)) // token='as' | |
+ (_keyword = _PyPegen_expect_token(p, 633)) // token='as' | |
&& | |
(star_target_var = star_target_rule(p)) // star_target | |
) | |
@@ -35690,7 +35718,7 @@ _tmp_219_rule(Parser *p) | |
Token * _keyword; | |
expr_ty star_target_var; | |
if ( | |
- (_keyword = _PyPegen_expect_token(p, 632)) // token='as' | |
+ (_keyword = _PyPegen_expect_token(p, 633)) // token='as' | |
&& | |
(star_target_var = star_target_rule(p)) // star_target | |
) | |
@@ -35732,7 +35760,7 @@ _tmp_220_rule(Parser *p) | |
Token * _keyword; | |
expr_ty star_target_var; | |
if ( | |
- (_keyword = _PyPegen_expect_token(p, 632)) // token='as' | |
+ (_keyword = _PyPegen_expect_token(p, 633)) // token='as' | |
&& | |
(star_target_var = star_target_rule(p)) // star_target | |
) | |
-- | |
2.34.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment