@@ -80,7 +80,7 @@ Key ideas
8080 using memoization.
8181- If parsing fails completely (no rule succeeds in parsing all the input text), the
8282 PEG parser doesn't have a concept of "where the
83- [ ` SyntaxError ` ] ( https://docs.python.org/3/library /exceptions.html#SyntaxError ) is".
83+ [ ` SyntaxError ` ] ( https://docs.python.org/3/builtins /exceptions.html#SyntaxError ) is".
8484
8585
8686> [ !IMPORTANT]
@@ -654,7 +654,7 @@ is, and it will unwind the stack and report the exception. This means that if a
654654[ rule action] ( #grammar-actions ) raises an exception, all parsing will
655655stop at that exact point. This is done to allow to correctly propagate any
656656exception set by calling Python's C API functions. This also includes
657- [ ` SyntaxError ` ] ( https://docs.python.org/3/library /exceptions.html#SyntaxError )
657+ [ ` SyntaxError ` ] ( https://docs.python.org/3/builtins /exceptions.html#SyntaxError )
658658exceptions and it is the main mechanism the parser uses to report custom syntax
659659error messages.
660660
@@ -715,7 +715,7 @@ acts in two phases:
715715> When defining invalid rules:
716716>
717717> - Make sure all custom invalid rules raise
718- > [ ` SyntaxError ` ] ( https://docs.python.org/3/library /exceptions.html#SyntaxError )
718+ > [ ` SyntaxError ` ] ( https://docs.python.org/3/builtins /exceptions.html#SyntaxError )
719719> exceptions (or a subclass of it).
720720> - Make sure ** all** invalid rules start with the ` invalid_ ` prefix to not
721721> impact performance of parsing correct Python code.
@@ -823,7 +823,7 @@ $ python -m pegen python <PATH TO YOUR GRAMMAR FILE>
823823> Python's grammar (the ` Grammar/python.gram ` file) is written for the
824824> C backend. To experiment, you will need to write a grammar
825825> without C-specific parts like actions and the trailer.
826- > See [ #133560 ] ( https://github.com/python/cpython/issues/133560 )
826+ > See [ #133560 ] ( https://github.com/python/cpython/issues/133560 )
827827> and [ #96424 ] ( https://github.com/python/cpython/issues/96424 ) for more information.
828828
829829This will generate a file called ` parse.py ` in the same directory that you
0 commit comments