>You can use $rule.start and $rule.stop to get the start and end 
>tokens of the range matched by a rule, 

Ah-HAH! Yes that makes a lot of sense, and obvious now that you point it out. 
Thanks!

> you need to be careful if the rule can successfully match no 
>tokens at all (or not the one you're asking for).

Yes, that worried me too.

-- 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