Skip to content

Commit 6c2425c

Browse files
authored
Changed parser.md pegen note to using Caution note block in more appropriate location.
1 parent 13e664a commit 6c2425c

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

InternalDocs/parser.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff 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+
822828
This will generate a file called `parse.py` in the same directory that you
823829
can use to parse some input:
824830

@@ -829,10 +835,6 @@ $ python parse.py file_with_source_code_to_test.py
829835
As the generated `parse.py` file is just Python code, you can modify it
830836
and 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

837839
Verbose mode
838840
------------

0 commit comments

Comments
 (0)