[antlr-interest] OutOfMemoryException due to comment
Jan Hinzmann
jan-oliver.hinzmann at dlr.de
Mon Mar 12 09:46:39 PDT 2007
Hi *,
I'm using the java parsing system generated by antlr.2.7.7 and the java.g from
http://www.antlr.org/grammar/1147455993609/Java5.zip
I have the following problem:
I'm parsing this java file:
>/**
> * @author Jan Hinzmann
> *
> */
>public class BadClass {
>
> /*
> * a one line comment after the class definition does not work
> */
>}
>
>// change log
and get an OutOfMemoryException.
Removing the last line ("// change log") lets me parse the file.
Is this a known problem? Are there fixes to the grammar?
Thank You!
Jan
More information about the antlr-interest
mailing list