[antlr-interest] Re: A question about extracting comments

Fan Yang yhhf_dy at yahoo.com
Fri Oct 11 10:51:48 PDT 2002

Thank all of you.

I don't know how to put "rem" into the lexer's tokens table:(. Would 
you please give me some hints?

BTW, I'm looking for Ter's post on the list.

Have a nice weekend,


--- In antlr-interest at y..., Brian Smith <brian-l-smith at u...> wrote:
> Put "rem" into the lexer's tokens table. That is the technique I 
> Fan Yang wrote:
> > Hi,
> > 
> > Thank you very much for your response.
> > 
> > I have already tried to use k=4 for 4 characters look ahead. But 
> > didn't work; it still gave me the following warning.
> > 
> > warning: lexical nondeterminism between rules COMMENT and IDENT 
> > MyVB.g:0:       k==1:'r'
> > MyVB.g:0:       k==2:'0'..'9','_','a'..'z'
> > MyVB.g:0:       k==3:<end-of-token>,'0'..'9','_','a'..'z'
> > MyVB.g:0:       k==4:<end-of-token>,'0'..'9','_','a'..'z'
> > 
> > Is it possible to put "rem" into literal table(I know it's 
> > for parser not for lexer)? because I have given  the options 
> > {testLiterals=true;} for IDENT. or someway else?


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

More information about the antlr-interest mailing list