Reputation: 1912
I am implementing a C preprocessor...
On Wiki, I found the following functionalities of it...
My questions:
If anyone knows any standard doc' about it, please mention that too.
Upvotes: 1
Views: 376
Reputation: 1030
You may want to check out the gcc docs to see how they implement it: http://gcc.gnu.org/onlinedocs/cpp/
You could also have a look at the source code for gcc: http://www.gnu.org/software/gcc/releases.html
Hope this helps
Upvotes: 2
Reputation: 272792
The standard doc is the C standard! The official versions are non-free, but you can find drafts that are sufficiently accurate, e.g. http://www.open-std.org/jtc1/sc22/WG14/www/docs/n1256.pdf for C99.
The chapters of interest are 5.1.1.2 (Translation phases) and 6.10 (Preprocessing directives).
Upvotes: 7