[antlr-interest] Grammar Perplexity in v3.0 (More)

Terence Parr parrt at cs.usfca.edu
Sun Nov 12 08:46:27 PST 2006


On Nov 12, 2006, at 8:44 AM, Randall R Schulz wrote:
> plainTerm
>     :    AtomicWord ( '(' arguments ')' ) ?
>
> AtomicWord
>     :   LowerWord
>     ;

These rules are a problem.  AtomicWord is unreachable as both rules  
can match it's input.  You will never see it in the parser.
Ter


More information about the antlr-interest mailing list