Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions InternalDocs/parser.md
Original file line number Diff line number Diff line change
Expand Up @@ -819,6 +819,12 @@ directory on the CPython repository and manually call the parser generator by ex
$ python -m pegen python <PATH TO YOUR GRAMMAR FILE>
```

> [!CAUTION]
> This grammar file has to be specific to Python and does not work with the existing
> C language based `Grammar/python.gram` file.
> See [#133560](https://github.com/python/cpython/issues/133560)
> and [#96424](https://github.com/python/cpython/issues/96424) for more information.

This will generate a file called `parse.py` in the same directory that you
can use to parse some input:

Expand Down
Loading