Skip to content

Commit fa17c00

Browse files
encukoulysnikolaoucmarqu
authored
Apply suggestions from code review
Co-authored-by: Lysandros Nikolaou <[email protected]> Co-authored-by: Colin Marquardt <[email protected]>
1 parent 231e2ba commit fa17c00

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Doc/reference/grammar.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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

Doc/reference/introduction.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

199199
This 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;
201201
uses in subsequent chapters are syntactic definitions.

0 commit comments

Comments
 (0)