Hi,
I have a set of lexical rules which match PatternA, PatternB and
PatternC. Is there a way to specify in Antlr that what ever is left
over or did not match be returned as a token?
I found out that I cannot add a rule like:
OTHER: (.)+
{ FoundToken(getText()); }
;
because it starts causing non-determinism with other rules. I could do
it in LEX, but I am pretty sure there must be a way to do it in Antlr.
Thanks
Pawan