[antlr-interest] Using code inserts in syntactic predicates

John D. Mitchell johnm-antlr at non.net
Tue Mar 15 09:47:37 PST 2005


>>>>> "Mike" == Mike Gadsdon <m.gadsdon at rheagroup.com> writes:
[...]

> I'm trying to use syntactic predicates in conjuction with testing token
> text to resolve parsing ambiguity. Problem is that the code inserts I use
> end up surrounded by a condition on inputState.guessing==0, which means
> that my token text code only runs when the rule is NOT being run as a
> syntactic predicate, but I need it to run always.

Hmm... Why aren't you using semantic predicates then?

Take care,
	John


More information about the antlr-interest mailing list