[antlr-interest] Re: Questions about learning ANTLR

mzukowski at yci.com mzukowski at yci.com
Fri Oct 4 16:18:03 PDT 2002


Keywords are properly specified as literals, check the documentation.

There is a parser unit test kit in the upload section of the group page on
http://groups.yahoo.com/group/antlr-interest/.

Monty

> -----Original Message-----
> From: micheal_jor [mailto:open.zone at virgin.net]
> Sent: Friday, October 04, 2002 4:14 PM
> To: antlr-interest at yahoogroups.com
> Subject: [antlr-interest] Re: Questions about learning ANTLR
> 
> 
> Sorry to butt in Richard but I had a few questions once I read your 
> post.....
> 
> > In general, the tokens { } section is for literal
> > strings that occur in the stream exactly as specified, or for 
> imagninary
> > tokens required to construct a abstract syntax tree (AST).
> 
> What about keywords?. I wondered why the java.g for example didn't 
> define keywords like "class", "final" etc as tokens. 
> 
> > When I was developing my parser, I would make one simple change at a
> > time, build the parser, execute a my junit test suite. I created an 
> ant
> > build.xml script that made this simple.
> 
> How do you use junit to test a parser?. Care to share more details on 
> this please?.
> 
> Cheers!
> 
> Micheal
> 
> 
>  
> 
> 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