Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Python 3 port

Prerequisites:

Command line example:

  • first copy the two grammar files and the example.py to this directory:

Linux:

    cp ../*.g4
    cp ../example.py

Windows:

    copy ..\*.g4
    copy ..\example.py
antlr4 -Dlanguage=Python3 PythonLexer.g4
antlr4 -Dlanguage=Python3 PythonParser.g4
python grun4py.py example.py
pygrun --tree Python file_input example.py

Related link:

ANTLR4 Python 3 target