Re: regenerating analyzed c++ code
Stefan Seefeld <[email protected]>
| Newsgroups | gmane.comp.documentation.synopsis |
|---|---|
| Message-ID | <[email protected]> |
Hi Maarten, The AST synopsis deals with internally is currently not fine-grained enough to reproduce the original code. The information you need is lost when the (C++ parser specific) parse tree is mapped to the (synopsis specific) syntax tree. The C++ parser is a fork of the OpenC++ project (now hosted at http://opencxx.sourceforge.net/), so you may want to check with them how to do what you want. Synopsis may at some point allow code generation, but how to get there from the current state (remember that synopsis supports multiple languages !) is not yet clear. Regards, Stefan