File tree 2 files changed +2859
-2767
lines changed
2 files changed +2859
-2767
lines changed Original file line number Diff line number Diff line change @@ -96,10 +96,12 @@ statements[asdl_stmt_seq*]: a=statement+ { (asdl_stmt_seq*)_PyPegen_seq_flatten(
96
96
statement[asdl_stmt_seq*]: a=compound_st
8EE4
mt { (asdl_stmt_seq*)_PyPegen_singleton_seq(p, a) } | a[asdl_stmt_seq*]=simple_stmts { a }
97
97
98
98
statement_newline[asdl_stmt_seq*]:
99
- | a=compound_stmt NEWLINE { (asdl_stmt_seq*)_PyPegen_singleton_seq(p, a) }
99
+ | a[asdl_seq*]=compound_stmt* b=simple_stmts_newline { (asdl_stmt_seq*)_PyPegen_seq_concat(p, a, (asdl_seq*)b) }
100
+ | ENDMARKER { _PyPegen_interactive_exit(p) }
101
+
102
+ simple_stmts_newline[asdl_stmt_seq*]:
100
103
| simple_stmts
101
104
| NEWLINE { (asdl_stmt_seq*)_PyPegen_singleton_seq(p, CHECK(stmt_ty, _PyAST_Pass(EXTRA))) }
102
- | ENDMARKER { _PyPegen_interactive_exit(p) }
103
105
104
106
simple_stmts[asdl_stmt_seq*]:
105
107
| a=simple_stmt !';' NEWLINE { (asdl_stmt_seq*)_PyPegen_singleton_seq(p, a) } # Not needed, there for speedup
You can’t perform that action at this time.
0 commit comments