Hi folks:

I've been scouring the list archives trying to scrape together a better 
understanding of what variants of lexer code ANTLR might generate.

I keep seeing assertions that ANTLR lexers use longest match to select between 
otherwise ambiguous alternatives, and other assertions that it doesn't.  

In the code I see generated, I don't see any longest match logic, but maybe it 
only appears under particluar grammar arrangements or options?

Or are people using "longest match" when they really mean "once mToken has 
chosen a rule, then that rule will act greedy" (unless greedy=false)?

I'd appreciate if someone could clarify with an example that shows where 
longest match comes into play.  Or confirm that ANTLR actually doesn't use that 
strategy?

Thanks,

Graham

List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to