[antlr-interest] could not even do k=1 for decision xx; reason: timed out

Graham Wideman gwlist at grahamwideman.com
Sat Aug 8 20:32:30 PDT 2009


>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


More information about the antlr-interest mailing list