Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 646 Bytes

File metadata and controls

32 lines (24 loc) · 646 Bytes

Java 8 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 PythonLexer.g4
antlr4 PythonParser.g4
javac *.java
java grun4py.java example.py
grun Python file_input -gui example.py

Related link:

ANTLR4 Java target