
I don't think it's feasible. You *might* be able to emulate the base interface over a completely separate (and much larger) implementation. However, you won't be able to emulate the extensibility model. For example, one of the defining things about Chaos is its ability to generalize recursion (not referring to the sequence tricks that I started this thread with). One of the key things I would like to implement in msvc is the recursion backend from Chaos. So there wouldn't be the need to implement a
plethora of macros to make one macro re-entrant, which I suppose doesn't look feasible in msvc.
The closest reference to the core language that either boost-pp or chaos- pp makes is probably ENUM_PARAMS. However, there is a huge "unexplored" area between the relatively low-level preprocessor libraries like boost-pp and chaos-pp and the higher level semantics of the core language with scenarios that are more specific than the low-level libraries but still library-izable (!!).
I think one of the other "unexplored" areas of the preprocessor, is the development of DSLs. It would be nice if there was a high-level library solution for this. Thanks, Paul Fultz II