I was reading this page in the documentation, and noticed that it says
This is the full Python grammar, as it is read by the parser generator and used to parse Python source files
However, I'm having difficulty finding out what parser generator CPython uses. So what parser generator does CPython use? Are there other parser generators that would take the grammar on that page without any modifications?
Python is open-source, so you can inspect the source code...
In the Python source directory is a "Parser" directory containing "Python.asdl" with the note
There's also an "asdl.py" file in the same directory...
So it appears that it is a custom parser generator. LALR(1) parser generators are not so hard to write.