]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-118323: Document `&&` grammar syntax (#118324)
authorNikita Sobolev <mail@sobolevn.me>
Sat, 27 Apr 2024 10:36:06 +0000 (13:36 +0300)
committerGitHub <noreply@github.com>
Sat, 27 Apr 2024 10:36:06 +0000 (11:36 +0100)
Grammar/python.gram

index 3943d7fec5db0396b01d872370a1554a515345db..05d7837e3aa6dba1b4d61bb6781598538ed908cc 100644 (file)
@@ -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