[antlr-interest] Re: How to deal with languages with preprocessor s?

Chuck Siska chuck.siska at nb.conexant.com
Tue Apr 16 13:20:10 PDT 2002


cpp also exists as a freeware standalone program, so gcc, itself,
isn't required though it may be convenient.
good luck.

-- chuck

"John D. Mitchell" wrote:
> 
> >>>>> "micheal" == micheal jor <open.zone at virgin.net> writes:
> >>>>>> --- In antlr-interest at y..., mzukowski at b... wrote:
> [...]
> >>> Any ideas please?. How to deal with the preprocessor directives in
> >>> C/C++ and C#.
> 
> >> For the GCC parser I run the preprocessor externally.
> 
> > What does this mean?. What preprocessor do you run externally?. Is it a
> > separate Lexer/Parser that you generated using ANTLR as well?
> 
> % man gcc
> 
> and look for the -E switch.  You can learn even more by reading the CPP
> documentation:
> 
> http://gcc.gnu.org/onlinedocs/gcc-3.0.2/cpp.html
> 
> If you're using another compiler system then you're own your own. :-)
> 
> Take care,
>         John

-- 
                                           |\_/\_.-'""``:-._       
What is life without looking for           . . `; -._      )-;-,_`)
the next cute little bug to play with?     v_,-    _  ),(,.\  ``-' 
                                          _.- _.,-_/ /  ((.'       
-- chuck.siska at conexant.com  `<}:..     ((,.-'   ((,/

 

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



More information about the antlr-interest mailing list