diff options
author | Nikita Sobolev <mail@sobolevn.me> | 2024-04-27 10:36:06 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-27 10:36:06 (GMT) |
commit | 51aefc5bf907ddffaaf083ded0de773adcdf08c8 (patch) | |
tree | f489ecdfbe80fac8265e1dbec9d7d482e4db859c | |
parent | c57326f48729f5cd7ddf7e2b38c4fd06d0962a41 (diff) | |
download | cpython-51aefc5bf907ddffaaf083ded0de773adcdf08c8.zip cpython-51aefc5bf907ddffaaf083ded0de773adcdf08c8.tar.gz cpython-51aefc5bf907ddffaaf083ded0de773adcdf08c8.tar.bz2 |
gh-118323: Document `&&` grammar syntax (#118324)
-rw-r--r-- | Grammar/python.gram | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Grammar/python.gram b/Grammar/python.gram index 3943d7f..05d7837 100644 --- a/Grammar/python.gram +++ b/Grammar/python.gram @@ -78,6 +78,9 @@ _PyPegen_parse(Parser *p) # Fail if e can be parsed, without consuming any input. # ~ # Commit to the current alternative, even if it fails to parse. +# &&e +# Eager parse e. The parser will not backtrack and will immediately +# fail with SyntaxError if e cannot be parsed. # # STARTING RULES |