[antlr-interest] newbie help
Kamal Verma
kverma at hotmail.com
Thu Jul 21 07:04:19 PDT 2005
Hi
I am new to ANTLR. Following is what I am trying to establish. Please help.
C# preprocessor parser. Which can parse,
* preprocessor directives
What I really what to achive is parse a c# program, evaluate #if IDENT and
select the pieces of code that are enclosed it. Another key thing I am
looking at is, the selected code fragments should be able to preserve
white-space. Any help will be greatly appreciated.
Thanks in advance.
-K
Preprocessor directives like following,
#define IDENT
#undef IDENT
#if IDENT_EXPRESSION
..code..
#elif IDENT_EXPRESSION
..code..
#else
..code..
#endif
IDENT_EXPRESSION contains operators like
!, ==, !=,&& and ||
#error _text_
#warning _text_
_________________________________________________________________
Don’t just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/onm00200636ave/direct/01/
More information about the antlr-interest
mailing list