From: Stefan S. <sse...@ar...> - 2004-11-13 21:44:08
|
Hi Iwan, From: Iwan Birrer >I do not only want the comments to be preserved, but also: macros, >file/directory structure, includes etc. Actally everything, so the >transformed code would be equal to the base code if only a dummy >transformation is being made. What exactly are you trying to do ? What you are asking for is generally impossible, as preprocessing is a separate process. In the context of the synopsis project I'v managed to retain most of the information you require, but not to regenerate the original code, but to be able to treat macros as first-class citizens in the structure I use to generate code documentation and to hyperlink the original code to the docs. You may have a look into this work at http://synopsis.fresco.org, though, I reiterate, regenerating the un-preprocessed code is impossible as of now and there are no plans to work on anything towards such a feature. If you are going to compile the newly generated code you only need equivalent code, and for that the requirements are much less stringent as far as code generation is concerned. Regards, Stefan |