I am trying to use ANTLR V4 with public Java 8 grammar - https://github.com/antlr/grammars-v4/blob/master/java8/Java8.g4
I generated class files and tried to parse the Java 8 JRE , but somehow with java.text.SimpleDateFormat.java it worked with:
java.lang.OutOfMemoryError: GC overhead limit exceeded
It also crashes when I try to parse just one file.
Can this be somehow solved? Obviously ANTLR V4 cannot handle files with more than 2000 LOC ? Is this a correct guess?
What i have done so far:
Changing the allocated memory on the JVM in a few steps from 256 MB to 4 GB - it then changes to
java.lang.OutOfMemoryError: Java heap space
To make sure there is no syntax problem with the input file
First, I deleted the first half of the file β , the parsing looked fine , and then disabled this action and deleted the second half of the file strong> β the parsing looks fine
source share