[antlr-interest] funny error message

Darien Hager darien.hager at etelos-inc.com
Tue Feb 12 18:39:43 PST 2008


Well, with hindsight it looks like a pretty good error message.

I guess it might hinge on the definition of "unreachable" or what component
is doing the reaching. Two possible quick interpretations of the message:

This token cannot be reached...
1) ...because it is an orphan not used by any parser rules.
2) ...because other lexer tokens will always match first.

I think I might assume explanation #1, just from reading the error message,
while it appears to be #2 that is happening.

-- 
Darien Hager
Developer
Etelos, Inc.
darien at etelos.com

http://www.etelos.com
"Revolutionizing the way applications are developed, distributed and
consumed."

This e-mail message, including attachments, may contain confidential
information for the sole use of the intended recipient(s). If you are not
the intended recipient, then this is notice that any use, disclosure,
dissemination, distribution or copying is strictly prohibited. If you have
received this message in error please contact the sender by reply mail and
destroy all copies of the original message.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080212/d001edf8/attachment.html 


More information about the antlr-interest mailing list