[antlr-interest] Using the ANTLRworks Debugger
Terence Parr
parrt at cs.usfca.edu
Sun Nov 19 11:50:45 PST 2006
On Nov 19, 2006, at 11:40 AM, Randall R Schulz wrote:
> Well, that's not really true. No other lexer rule matches what
> SingleQuoted does, since SingleQuoted starts with a single-quote (')
> only and no other rule allows a single quote as its first
> character. So
> how could there be a conflict?
not sure, but that is the only explanation. You should look for a
rule that does not specifically mention the single quote such as
something that uses the wildcard '.'.
>> It generates no code hence the compile errors.
>
> The stand-alone / command-line parser generates code just fine from
> this
> ANTLR grammar. And it parses the stuff it should parse (so far my test
> corpus doesn't use this construct, so it's irrelevant for now).
>
> And in fact when I remove the SingleQuoted rule and the references to
> it, silencing the spurious error about its being unreachable, the same
> thing happens when I try to debug in ANTLRworks.
thanks for the report
Ter
More information about the antlr-interest
mailing list