This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: How can I interface myself with the C preprocessor?
- From: Michael Eager <eager at eagercon dot com>
- To: Matteo Fioroni <matteofioroni at yahoo dot it>
- Cc: GCC <gcc at gcc dot gnu dot org>
- Date: Thu, 05 Oct 2006 05:53:17 -0700
- Subject: Re: How can I interface myself with the C preprocessor?
- References: <20061005080053.64316.qmail@web26903.mail.ukl.yahoo.com>
Matteo Fioroni wrote:
Thanks for your help, I saw the gcc -E output: but it
don't match my needs.
I've to interface the Preprocessor to get the tokens
(keyword, preprocessor directives, grammar, ecc..) it
analyzes on which I've to permorm some operations.
The preprocessor doesn't break C into the tokens you
describe. Basically, all it knows about are preprocessor
directives (starting with #), words, and other characters.
The preprocessor doesn't know anything about keywords
or the grammar.
I think you have fallen (and we with you) into the trap of
your telling us about how you want to solve some problem,
without telling us what the problem is. So every solution
is going to get the response "thanks, but that is what
I need".
If you want help with a problem, describe the problem.
--
Michael Eager eager@eagercon.com
1960 Park Blvd., Palo Alto, CA 94306 650-325-8077