-
When I run the command "antlr4 -Dlanguage=Python3 (the path where the grammar is located) -o (the folder where we save it) -visitor" in the command line, I get an error: Exception in thread "main" java.lang.IllegalArgumentException: newLimit > capacity: (88581596 > 33554432) How can I solve this problem? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hi. Do you observe the same behavior when targeting a language other than Python ? |
Beta Was this translation helpful? Give feedback.
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.