[antlr-interest] Re: How to deal with languages with preprocessor s?
John D. Mitchell
johnm-antlr at non.net
Tue Apr 16 11:42:03 PDT 2002
>>>>> "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
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list