- Installed ANTLR4-tools
- first copy the two grammar files and the example.py to this directory:
Linux:
cp ../*.g4
cp ../example.pyWindows:
copy ..\*.g4
copy ..\example.pyantlr4 PythonLexer.g4
antlr4 PythonParser.g4
javac *.java
java grun4py.java example.py
grun Python file_input -gui example.py