[antlr-interest] Documentation - literals

Paramjeet Saini saini20800 at yahoo.com
Thu Oct 17 03:22:03 PDT 2002


Please remove me from your mail list ... Thanks 


--- Brian Smith <brian-l-smith at uiowa.edu> wrote:
> See the "testLiterals" option.
> 
> Here is an example
> 
> options {
>     testLiterals=true;
> }
> 
> tokens {
>      "class";
> }
> 
> ID: ('a'..'z')+;
> 
> 
> 
> David Wigg wrote:
> > In the antlr documentation there is a reference
> under "Keywords 
> > and Literals" to a "literal" option (to specify a
> particular 
> > word is a literal and therefore can be
> distinguished from a 
> > variable).
> > 
> > On clicking it you are taken to "Options"
> > 
> > However, I cannot see any further reference to a
> "literal" 
> > option, it is not listed in the list of options
> and the antlr 
> > tool does not seem to recognise a "literal"
> option.
> > 
> > Does it in fact exist?
> > 
> > If it does exist how do you use it?
> > 
> > Thanks.
> > 
> > David.
> > 
> > 
> > 
> >  
> > 
> > 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/ 
> 
> 


__________________________________________________
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com

 

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



More information about the antlr-interest mailing list