File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -819,6 +819,12 @@ directory on the CPython repository and manually call the parser generator by ex
819819$ python -m pegen python < PATH TO YOUR GRAMMAR FILE>
820820```
821821
822+ > [ !CAUTION]
823+ > This grammar file has to be specific to Python and does not work with the existing
824+ > C language based` Grammar/python.gram ` file.
825+ > See [ #133560 ] ( https://github.com/python/cpython/issues/133560 )
826+ > and [ #96424 ] ( https://github.com/python/cpython/issues/96424 ) for more information.
827+
822828This will generate a file called ` parse.py ` in the same directory that you
823829can use to parse some input:
824830
@@ -829,10 +835,6 @@ $ python parse.py file_with_source_code_to_test.py
829835As the generated ` parse.py ` file is just Python code, you can modify it
830836and add breakpoints to debug or better understand some complex situations.
831837
832- However, this does not work with the existing ` Grammar/python.gram ` file.
833- See [ #133560 ] ( https://github.com/python/cpython/issues/133560 )
834- and [ #96424 ] ( https://github.com/python/cpython/issues/96424 ) for more information.
835-
836838
837839Verbose mode
838840------------
You can’t perform that action at this time.
0 commit comments