Re: [C++-sig] pyste, gccxml and boost ublas, random number generator etc
Stefan Seefeld <[email protected]>
| Newsgroups | gmane.comp.documentation.synopsis |
|---|---|
| Message-ID | <[email protected]> |
Roman Yakovenko wrote: >>>I am interested in this project. I'd like to add an other back-end to >>>my project - >>>pygccxml. pyplusplus is based on it. Could you provide small example or >>>introduction how you build front-end based on synopsis? >> >>I'm not sure yet, as I don't know how much information is needed, >>and thus, what representations to use for the code generation. >>Parse Tree and Type Repository, or AST ? > > > I think I can help you here. I have some direction to go. You have some nice > diagram at http://synopsis.fresco.org/design.html. It will be nice to > see how you > convert Parse Tree, Type Repository and AST to this diagram. If you have this > diagram in your hands it is a matter of time to convert it to pyste \ pygccxml > classes. Here is the link to pygccxml class diagram: > http://pygccxml.sourceforge.net/pygccxml/declarations.png. I fear I'm getting a bit lost in all the involved (sub-)projects as we were originally talking about synopsis as a backend for pyste, but are now talking about gccxml, pygccxml, pyplusplus, etc. I couldn't quite figure out what the goal of pygccxml and pyplusplus is, and how that relates to synopsis. gccxml is a C/C++ parser, and synopsis contains a C/C++ parser, too, so I can see that in some cases where software depends on gccxml it may make sense to replace that with synopsis. However, from my little understanding it appears that pygccxml is - in terms of scope - more equivalent to synopsis as a whole, i.e. source code introspection. Why would you want to run on top of synopsis, then ? What is the advantage of mapping synopsis' own internal representations to pygccxml, of you could do the same introspection more efficiently inside synopsis ? What advantage does pygccxml have over synopsis that suggests such an additional step ? > By the way pygccxml almost 80 unittests. So If I add synopsis as > back-end, I could be sure I did it right. That's good. What do these tests cover ? Regards, Stefan