[antlr-interest] Grammar Perplexity in v3.0

Randall R Schulz rschulz at sonic.net
Sun Nov 12 08:46:54 PST 2006


Terence,

On Sunday 12 November 2006 08:38, Terence Parr wrote:
> ...
>
> > When I compile the grammar, I get this diagnostic:
> >
> > ANTLR Parser Generator   Early Access Version 3.0b4 (??, 2006)
> > 1989-2006
> > TSTPv3209.g:1099:1: The following token definitions are
> > unreachable: AtomicWord,FileName,SingleQuoted
>
> Most likely you need "fragment" in front of some rules (the ones that
> are only used by other lexical rules).

I'm pretty sure I have the pertinent lexical rules flagged as fragments. 
See the post that I was submitting just as your reply came in.


> Ter


Randy


More information about the antlr-interest mailing list