Skip to content

Problem with antlr4 -Dlanguage=Python3 <the path where the grammar is located> -o <the folder where we save it> -visitor #4704

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

You must be logged in to vote

I recommend trying a fresh download of the Antlr4 tool jar (https://github.com/antlr/website-antlr4/blob/gh-pages/download/antlr-4.13.2-complete.jar) and call via your installed Java (java -jar antlr-4.13.2-complete.jar *.g4). Try first to see if it works for the Java target (skip -Dlanguage=Python3), then with the option. Another thing to try, remove your installed Java, and let the antlr4 tool do all the downloading of the .jar and a fresh JRE.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@KseniaTya
Comment options

@kaby76
Comment options

@KseniaTya
Comment options

@kaby76
Comment options

Answer selected by KseniaTya
@KseniaTya
Comment options

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