File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,8 @@ except for a few extra complications:
1515* ``&e ``: a positive lookahead (that is, ``e `` is required to match but
1616 not consumed)
1717* ``!e ``: a negative lookahead (that is, ``e `` is required *not * to match)
18- * ``~ `` ("cut"): commit to the current alternative, even if it fails to parse
18+ * ``~ `` ("cut"): commit to the current alternative and fail the rule
19+ even if this fails to parse
1920
2021.. literalinclude :: ../../Grammar/python.gram
2122 :language: peg
Original file line number Diff line number Diff line change @@ -197,5 +197,5 @@ converted to tokens like :data:`token.INDENT` or :data:`~token.NEWLINE`.
197197*Syntactic * definitions then use these tokens, rather than source characters.
198198
199199This documentation uses the same BNF grammar for both styles of definitions.
200- All uses of BNF in the next chapter (“Lexical Analysis” ) are lexical definitions;
200+ All uses of BNF in the next chapter (:ref: ` lexical ` ) are lexical definitions;
201201uses in subsequent chapters are syntactic definitions.
You can’t perform that action at this time.
0 commit comments