[antlr-interest] Complex rules?

Michael Moore mike at omnicorp.org
Thu Feb 11 21:13:13 PST 2010


Hi guys,

 

This is probably a bit of a newbie question, but I'm trying to write a rule
that basically says "match any 'foo' that also does not match any 'bar'"
where 'foo' is a basic rule (matches all letters and numbers) and 'bar' is a
list of keywords. Is there a way to produce this kind of logic in ANTLR or
does the logic need to be approached from a different direction to solve
this one?

 

Thanks,

Mike



More information about the antlr-interest mailing list