[antlr-interest] not closed multi-line comment cause infinite looping
Adrian Herscu
bmf1972 at fastmail.fm
Wed Apr 25 07:59:19 PDT 2007
Hi all,
I am using antlr 2.7.6 and one of the Java grammars to build a parser
for my own language.
I decided to start with an empty grammar and add rules from that Java
grammar while applying required adaptations for my language.
There is a ML_COMMENT lexer rule which causes an infinite loop when the
its instance is left open (i.e. without a closing */). This happens even
when I am testing it in the context of the original Java grammar.
/* For example:
not closed multi-line comment -- parsing never completes
package foo.bar.oji8.fds;
Adrian.
More information about the antlr-interest
mailing list