[antlr-interest] MismatchedTokenException and how to find errors in ANTLRWorks

Jim Idle jimi at temporal-wave.com
Wed Feb 13 10:22:15 PST 2008



> -----Original Message-----
> From: shmuel siegel [mailto:antlr at shmuelhome.mine.nu]
> Sent: Wednesday, February 13, 2008 10:32 AM
> To: antlr-interest at antlr.org
> Subject: Re: [antlr-interest] MismatchedTokenException and how to find
> errors in ANTLRWorks
> 
> Jim Idle wrote:
> > ....
> >
> > There isn't anything wrong with the tool, it is doing what you tell
> it
> > to do. The token isnt anonymous, it is called T66 or whatever, the
> > runtime doesn't know that you created it by specifying it in the
> parser.
> > So, I don't see why "anonymous token" would help you at all.
> >
> > .....
> >> The tool needs to be patched, not users.
> >>
> >
> > A tool should strive to be as simple as possible, but no simpler :-)
> > While that statement makes sense, you are an under an obligation to
> > yourself to try to make sure you understand the tool too. 
Ironically,
> my
> > statement that literals in parsers are confusing is based entirely
> upon
> > your stated premise.
> >
> > Jim
> I thought that another voice should jump in here. Even though Jim and 
I
> are usually on different sides of usability arguments (Jim takes the
> side of the ANTLR developer and I take the side of the ANTLR rule
> writer), 

Well, I am not too sure about that statement being universally true, or 
even true that often. The reason I am saying that the literals are 
confusing is out of sympathy for grammar writers (one of which I am 
dont forget ;-).

> I totally agree with him here.

And there you go ;-)

Jim



More information about the antlr-interest mailing list