[antlr-interest] Java language 'comments'

Terence Parr parrt at jguru.com
Thu Sep 26 10:29:34 PDT 2002


Hi :)

There are examples of this on the antlr.org site. and also see 
TokenStream in docs :)

Ter

On Thursday, September 26, 2002, at 10:13  AM, nilopaim wrote:

> Hi All,
>
> Congratulations to Terr, Ric and the others guys that work on this
> great tool.
>
> I have a litle (I hope) question.
>
> Examining the Java grammar from the main Antlr site (www.antlr.org),
> I saw that comments are just skipped there. Please, could someone
> give me some hints about incorporating comments and getting it into
> the final AST? All my tries produce a lot of non-determinisms and I
> don't know how to resolve them.
>
> How could I insert the handling of comments in the syntax, since
> comments can appear everywhere?
>
> Thanks to all.
>
> Nilo
> npaim at hotmail.com
>
>
>
>
> Your use of Yahoo! Groups is subject to 
> http://docs.yahoo.com/info/terms/
>
>
--
Co-founder, http://www.jguru.com
Creator, ANTLR Parser Generator: http://www.antlr.org
Lecturer in Comp. Sci., University of San Francisco


 

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



More information about the antlr-interest mailing list