[antlr-interest] Parsing with inverse matches

Vipul Delwadia vipul.delwadia at gmail.com
Mon Nov 23 13:32:44 PST 2009

On 23/11/2009, at 8:45 PM, David-Sarah Hopwood wrote:
> A and NOTA should be fragment rules ...

On 23/11/2009, at 8:15 PM, Gavin Lambert wrote:
> The input "\a" by itself will produce a NOTA token, since that's the best-fit non-fragment rule.
> Your parser is however not expecting that.  Almost certainly, both A and NOTA should be fragment rules.

You're both quite right, changing the rules to be fragment solved the issue.

Thanks for the help!


More information about the antlr-interest mailing list