[antlr-interest] What tool[s] do you use when debugging ANTLR grammars?

mzukowski at yci.com mzukowski at yci.com
Fri Jun 21 06:48:59 PDT 2002


You can learn all about how you would do it by hand in Ter's book draft:

http://www.antlr.org/book/byhand.pdf

Monty

> -----Original Message-----
> From: bob mcwhirter [mailto:bob at werken.com]
> Sent: Thursday, June 20, 2002 9:42 PM
> To: antlr-interest at yahoogroups.com
> Subject: Re: [antlr-interest] What tool[s] do you use when debugging
> ANTLR grammars?
> 
> 
> > So what tools do you use for grammar debugging and, what 
> tips can you 
> > offer an ANTLR newbie on grammar creation and debugging?
> 
> This is going to sound pedantic, but...
> 
> Learn about recursive-descent parsers.  You'll understand how 
> ANTLR thinks
> once you grok r-d parsers.  Then, you can just look at the generated
> source, and figure out why ANTLR is zigging when you expected 
> it to zag.
> 
> I highly recommend writing at least 1 r-d parser in your 
> life.  It'll give
> you an appreciation of exactly how much drudgery you avoid by 
> using ANTLR.
> 
> 	-bob
> 
> 
>  
> 
> Your use of Yahoo! Groups is subject to 
http://docs.yahoo.com/info/terms/ 


 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 



More information about the antlr-interest mailing list