Original Post
I'm working on a quick-and-dirty upgrade to an ancient tool, which, unfortunately relies on the C++ pre-processor. Basically, the tool takes a piece of code in a language that doesn't support macros, runs it through cl.exe like this: cl.exe /EP /u /nologo filename.ext > temp.out The /EP parameter disables everything except the pre-processor pass and temp.out holds an expanded version of the file, which the tool then goes on to process some more. I've got everything down good except the preprocessor functionality. I can't seem to find any C++ pre-processing libraries for C#. Ideally I'd like to avoid messing around with temporary files as much as possible, which is why I'd like to have an embedded (instead of shell-based) preprocessor in this tool. Does anyone know of any? I briefly considered looking into converting C++ preprocessors such as Boost.Wave into C#, but that is way too much effort for a simple tool, and we require this tool to be .NET.