Skip to content

Files

Latest commit

ac28db4 · Jan 7, 2025

History

History
31 lines (19 loc) · 1.36 KB

README.md

File metadata and controls

31 lines (19 loc) · 1.36 KB

ANTLR4 parser for Python 3.8.20   License: MIT

About files:

  • PythonParser.g4 is the ANTLR4 parser grammar that based on the last "traditional" Python grammar which not yet written in PEG

  • PythonLexerBase:

    • handles the Python indentations
    • creates encoding token
    • and manage many other things

  • Example files from: Python 3.8 Standard Lib

Recent changes:

  • added ENCODING token

Related links:

ANTLR 4

ANTLR4-tools

ANTLR 4 Documentation

ANTLR 4 Runtime API

Python 3.8 Lexical Analysis

ANTLR4 parser for Python 2.7.18

ANTLR4 Python parser based on the official PEG grammar