[antlr-interest] Re: please answer me!!!!!!

Sergey Bogdanov serge.bogdanov at intel.com
Thu Aug 5 07:16:45 PDT 2004


--- In antlr-interest at yahoogroups.com, "yjargudo" <yjargudo at t...> 
wrote:
> Hello,
> 
> Please answer me!!!
> 
> I have two problems that I don't know how to solve them:
> 
> 1-
> 
> I'm parsing c++ files and I need to treat includes. I'm try to use
> TokenStreamSelector.The problem is that I need to use 
TokenStreamFilter
> too, in order to hide cpp comments. How can I merge this two things
> when I put the code to start antlr parser and lexer?
> 
 Would you concider an option of running 'cpp' before parsing?

> 
> 2-
>  I want to parse twice a source file with the same grammar (only 
antlr
> actions changes).Loring tell me to use trees but I want to avoid 
it.
> There's another way?
> 

Building trees is probably the most eficient way to do it. Other 
wise you need big 'if' statements around your actions and a global 
pass number.

> 
> Thanks
> 
> Yolanda



 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/antlr-interest/

<*> To unsubscribe from this group, send an email to:
    antlr-interest-unsubscribe at yahoogroups.com

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



More information about the antlr-interest mailing list