Commit cfcb952
authored
Left-recursive rules need to check for errors explicitly, since
even if the rule returns NULL, the parsing might continue and lead
to long-distance failures.
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
(cherry picked from commit 02cdfc9)
Automerge-Triggered-By: GH:lysnikolaou
1 parent dbaa07d commit cfcb952
4 files changed
Lines changed: 32 additions & 0 deletions
File tree
- Lib/test
- Misc/NEWS.d/next/Core and Builtins
- Parser/pegen
- Tools/peg_generator/pegen
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
964 | 964 | | |
965 | 965 | | |
966 | 966 | | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
967 | 975 | | |
968 | 976 | | |
969 | 977 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3460 | 3460 | | |
3461 | 3461 | | |
3462 | 3462 | | |
| 3463 | + | |
| 3464 | + | |
3463 | 3465 | | |
3464 | 3466 | | |
3465 | 3467 | | |
| |||
9044 | 9046 | | |
9045 | 9047 | | |
9046 | 9048 | | |
| 9049 | + | |
| 9050 | + | |
9047 | 9051 | | |
9048 | 9052 | | |
9049 | 9053 | | |
| |||
9158 | 9162 | | |
9159 | 9163 | | |
9160 | 9164 | | |
| 9165 | + | |
| 9166 | + | |
9161 | 9167 | | |
9162 | 9168 | | |
9163 | 9169 | | |
| |||
9272 | 9278 | | |
9273 | 9279 | | |
9274 | 9280 | | |
| 9281 | + | |
| 9282 | + | |
9275 | 9283 | | |
9276 | 9284 | | |
9277 | 9285 | | |
| |||
9386 | 9394 | | |
9387 | 9395 | | |
9388 | 9396 | | |
| 9397 | + | |
| 9398 | + | |
9389 | 9399 | | |
9390 | 9400 | | |
9391 | 9401 | | |
| |||
9539 | 9549 | | |
9540 | 9550 | | |
9541 | 9551 | | |
| 9552 | + | |
| 9553 | + | |
9542 | 9554 | | |
9543 | 9555 | | |
9544 | 9556 | | |
| |||
9698 | 9710 | | |
9699 | 9711 | | |
9700 | 9712 | | |
| 9713 | + | |
| 9714 | + | |
9701 | 9715 | | |
9702 | 9716 | | |
9703 | 9717 | | |
| |||
10302 | 10316 | | |
10303 | 10317 | | |
10304 | 10318 | | |
| 10319 | + | |
| 10320 | + | |
10305 | 10321 | | |
10306 | 10322 | | |
10307 | 10323 | | |
| |||
13962 | 13978 | | |
13963 | 13979 | | |
13964 | 13980 | | |
| 13981 | + | |
| 13982 | + | |
13965 | 13983 | | |
13966 | 13984 | | |
13967 | 13985 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
496 | 496 | | |
497 | 497 | | |
498 | 498 | | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
499 | 502 | | |
500 | 503 | | |
501 | 504 | | |
| |||
0 commit comments