Sudhakar Frederick <sfrederi@asc.corp.mot.com> wrote:>Is it practical to implement "conditional compilation" C-style>constructs similar to #include, #define #ifdef etc. as part of the>parsing rather than through a pre-processor.

I wrote "cpplib" which is a package for doing cpp-style processing.
The package includes cppmain, a simple driver that replaces cpp.
Cpplib is included with the gcc sources, but is currently only used
for fix-proto. The long -term goal is for cppmain to replace cpp, and
the gcc and g++ lexers to call cpplib directly; however, no-one has
had time to do the "last 10%" of the work.