We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
parser.md
Grammar/python.gram
1 parent fcd53b6 commit f4f82f0Copy full SHA for f4f82f0
1 file changed
InternalDocs/parser.md
@@ -819,6 +819,13 @@ directory on the CPython repository and manually call the parser generator by ex
819
$ python -m pegen python <PATH TO YOUR GRAMMAR FILE>
820
```
821
822
+> [!CAUTION]
823
+> Python's grammar (the `Grammar/python.gram` file) is written for the
824
+> C backend. To experiment, you will need to write a grammar
825
+> without C-specific parts like actions and the trailer.
826
+> See [#133560](https://github.com/python/cpython/issues/133560)
827
+> and [#96424](https://github.com/python/cpython/issues/96424) for more information.
828
+
829
This will generate a file called `parse.py` in the same directory that you
830
can use to parse some input:
831
0 commit comments