[antlr-interest] References from Parser Rules to Lexer Fragments Should Elicit Diagnostic

Terence Parr parrt at cs.usfca.edu
Tue Nov 28 17:48:33 PST 2006


On Nov 20, 2006, at 11:42 AM, Randall R Schulz wrote:

> Hi,
>
> I finally found the last vexing problem in my combined lexer + parser
> grammar.
>
> It turns out I had a parser / non-terminal rule that referred to a  
> lexer
> fragment. I would not / could not match at run time, but there was no
> warning given at the point of reference.
>
> I think references to lexer fragments from parser rules should  
> produce a
> diagnostic.

Added. http://www.antlr.org:8888/browse/ANTLR-54

Ter



More information about the antlr-interest mailing list