Skip to content

How to use grun with Python grammar #3828

Answered by kaby76
juli1 asked this question in Q&A
Discussion options

You must be logged in to vote
git clone https://github.com/antlr/grammars-v4
cd grammars-v4/python/python
mkdir x
cp *.g4 x
cp Java/* x
cd x
java -jar ~/.m2/antlr4-4.10.1-complete.jar *.g4
javac -cp ~/.m2/antlr4-4.10.1-complete.jar:. *.java
java -cp ~/.m2/antlr4-4.10.1-complete.jar:. org.antlr.v4.gui.TestRig Python root ../examples/argument.py -gui

You may have to play around with the classpath command-line option depending on Linux or Windows.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@juli1
Comment options

Answer selected by juli1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants