After looking at the documentation of Wave I believe it can be used to
extract the preprocessor grammar and I am therefore looking for some
tips on how to get started on my problem. I want to adapt wave into a mechanism for
exptracting all preprocessor grammar from a source file without modifying the library itself, and I will try
to explain what I want to use wave for. What I want to do is to
*extracting the position and value of preprocessor tokens
like #ifdef's, #defines, #warning etc.
*evaluate the preprocessor conditionals
*after evaluating the preprocessor conditional, extract the portion
which was evaluated as false as a string