@@ -96,12 +96,12 @@ func_type[mod_ty]: '(' a=[type_expressions] ')' '->' b=expression NEWLINE* ENDMA
96
96
97
97
statements[asdl_stmt_seq*]: a=statement+ { _PyPegen_register_stmts(p, (asdl_stmt_seq*)_PyPegen_seq_flatten(p, a)) }
98
98
99
- statement[asdl_stmt_seq*]:
100
- | a=compound_stmt { (asdl_stmt_seq*)_PyPegen_singleton_seq(p, a) }
99
+ statement[asdl_stmt_seq*]:
100
+ | a=compound_stmt { (asdl_stmt_seq*)_PyPegen_singleton_seq(p, a) }
101
101
| a[asdl_stmt_seq*]=simple_stmts { a }
102
102
103
103
single_compound_stmt[asdl_stmt_seq*]:
104
- | a=compound_stmt {
104
+ | a=compound_stmt {
105
105
_PyPegen_register_stmts(p, (asdl_stmt_seq*)_PyPegen_singleton_seq(p, a)) }
106
106
107
107
statement_newline[asdl_stmt_seq*]:
@@ -449,9 +449,9 @@ except_block[excepthandler_ty]:
449
449
_PyAST_ExceptHandler(e, ((expr_ty) t)->v.Name.id, b, EXTRA) }
450
450
| 'except' e=expressions ':' b=block {
451
451
CHECK_VERSION(
452
- excepthandler_ty,
453
- 14,
454
- "except expressions without parentheses are",
452
+ excepthandler_ty,
453
+ 14,
454
+ "except expressions without parentheses are",
455
455
_PyAST_ExceptHandler(e, NULL, b, EXTRA)) }
456
456
| 'except' ':' b=block { _PyAST_ExceptHandler(NULL, NULL, b, EXTRA) }
457
457
| invalid_except_stmt
@@ -463,9 +463,9 @@ except_star_block[excepthandler_ty]:
463
463
_PyAST_ExceptHandler(e, ((expr_ty) t)->v.Name.id, b, EXTRA) }
464
464
| 'except' '*' e=expressions ':' b=block {
465
465
CHECK_VERSION(
466
- excepthandler_ty,
467
- 14,
468
- "except expressions without parentheses are",
466
+ excepthandler_ty,
467
+ 14,
468
+ "except expressions without parentheses are",
469
469
_PyAST_ExceptHandler(e, NULL, b, EXTRA)) }
470
470
| invalid_except_star_stmt
471
471
finally_block[asdl_stmt_seq*]:
@@ -977,11 +977,11 @@ tstring_middle[expr_ty]:
977
977
| tstring_replacement_field
978
978
| t=TSTRING_MIDDLE { _PyPegen_constant_from_token(p, t) }
979
979
tstring[expr_ty] (memo):
980
- | a=TSTRING_START b=tstring_middle* c=TSTRING_END {
980
+ | a=TSTRING_START b=tstring_middle* c=TSTRING_END {
981
981
CHECK_VERSION(
982
- expr_ty,
983
- 14,
984
- "t-strings are",
982
+ expr_ty,
983
+ 14,
984
+ "t-strings are",
985
985
_PyPegen_template_str(p, a, (asdl_expr_seq*)b, c)) }
986
986
987
987
string[expr_ty]: s[Token*]=STRING { _PyPegen_constant_from_string(p, s) }
@@ -1383,11 +1383,11 @@ invalid_import:
1383
1383
RAISE_SYNTAX_ERROR_STARTING_FROM(token, "Expected one or more names after 'import'") }
1384
1384
invalid_dotted_as_name:
1385
1385
| dotted_name 'as' !(NAME (',' | ')' | NEWLINE)) a=expression {
1386
- RAISE_SYNTAX_ERROR_KNOWN_LOCATION(a,
1386
+ RAISE_SYNTAX_ERROR_KNOWN_LOCATION(a,
1387
1387
"cannot use %s as import target", _PyPegen_get_expr_name(a)) }
1388
1388
invalid_import_from_as_name:
1389
1389
| NAME 'as' !(NAME (',' | ')' | NEWLINE)) a=expression {
1390
- RAISE_SYNTAX_ERROR_KNOWN_LOCATION(a,
1390
+ RAISE_SYNTAX_ERROR_KNOWN_LOCATION(a,
1391
1391
"cannot use %s as import target", _PyPegen_get_expr_name(a)) }
1392
1392
1393
1393
invalid_import_from_targets:
0 commit comments