[antlr-interest] References from Parser Rules to Lexer Fragments Should Elicit Diagnostic
Randall R Schulz
rschulz at sonic.net
Mon Nov 20 11:42:04 PST 2006
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.
Randall Schulz
More information about the antlr-interest
mailing list