Python is open source, so you can check the source code ...
The Python source directory contains the "Parser" directory containing "Python.asdl" with a note
- ASDL four builtin types are identifier, int, string, object
There is also an asdl.py file in the same directory ...
<Preview> "" Implementation of Zephyr syntax definition language. See
http://asdl.sourceforge.net/ and
http://www.cs.princeton.edu/research/techreps/TR-554-97 Only the top-level decl module is supported, not view. I assume the view is intended to support the browser, and I am not interested in the browser. Changes for Python: add support for module versions ""
So, it looks like this is a custom parser generator. LALR parser generators (1) are not that hard to write.
source share