[antlr-interest] Re: please answer me!!!!!!
serge.bogdanov at intel.com
Thu Aug 5 07:16:45 PDT 2004
--- In antlr-interest at yahoogroups.com, "yjargudo" <yjargudo at t...>
> Please answer me!!!
> I have two problems that I don't know how to solve them:
> 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
> 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?
> I want to parse twice a source file with the same grammar (only
> actions changes).Loring tell me to use trees but I want to avoid
> 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
Yahoo! Groups Links
<*> To visit your group on the web, go to:
<*> To unsubscribe from this group, send an email to:
antlr-interest-unsubscribe at yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
More information about the antlr-interest