gh-118323: Document `&&` grammar syntax (#118324)

This commit is contained in:
Nikita Sobolev 2024-04-27 13:36:06 +03:00 committed by GitHub
parent c57326f487
commit 51aefc5bf9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -78,6 +78,9 @@ _PyPegen_parse(Parser *p)
# Fail if e can be parsed, without consuming any input. # Fail if e can be parsed, without consuming any input.
# ~ # ~
# Commit to the current alternative, even if it fails to parse. # 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 # STARTING RULES