[antlr-interest] Dot won't match forward slash
Ben Dotte
ben.dotte at gmail.com
Tue Jul 8 15:04:03 PDT 2008
Hi,
I have a parser rule in my ANTLR 3 grammar like this:
quotedSearch : '"'^ .+ '"'! ;
The strange thing is, forward slashes result in a "no viable
alternative at character'/'" exception and get thrown out of the
resultant tree. I don't seem to have any problems with other
characters like \()[]* etc.
Is there something special about forward slashes or could there be any
reason for this error?
Thanks,
Ben
More information about the antlr-interest
mailing list