-
PythonParser.g4 is the ANTLR4 parser grammar that based on the official Python PEG grammar
-
PythonLexerBase handles the Python indentations
-
Example files: Python 3.12 Standard Lib
The parsing of type comments is not supported.
related discussion:
Deprecate type comment support?