Hi again,
The language I am trying to support has preprocessor statements that
look like this:
#ifdef FOO then {
<code>
}
#else {
<code>
};
there is also the #ifndef variant.
I would like to create a superposition of the two code blocks. In
other words the #ifdef-#else should be ignored while the code in the
BRACE_BLOCKs should be parsed.
My idea was to reparse the blocks using the surroundig context as
start rule. But how would I do that?
Best regards,
Marcus
|