[antlr-interest] Re: Questions about learning ANTLR

Hensley, Richard richard.hensley at mckesson.com
Fri Oct 4 16:40:00 PDT 2002


Monty, 

Where in the documentation does it talk about keywords being specified
as literals? I want to check it out to make sure I didn't screw up my
grammars, and give bad advice.

Richard 

-----Original Message----- 
From: mzukowski at yci.com [ mailto:mzukowski at yci.com
<mailto:mzukowski at yci.com> ] 
Sent: Friday, October 04, 2002 4:18 PM 
To: antlr-interest at yahoogroups.com 
Subject: RE: [antlr-interest] Re: Questions about learning ANTLR 


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/
<http://groups.yahoo.com/group/antlr-interest/> . 

Monty 

> -----Original Message----- 
> From: micheal_jor [ mailto:open.zone at virgin.net
<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/ <http://docs.yahoo.com/info/terms/>

> 
> 

  

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20021004/7741a202/attachment.html


More information about the antlr-interest mailing list