Re: ...create a new language generator?
Jonathan Riddell <[email protected]> Mon, 17 Oct 2005 16:05:35 +0100
| Newsgroups | gmane.linux.umbrello.user |
|---|---|
| Message-ID | <[email protected]> |
On Sat, Sep 17, 2005 at 02:17:02AM +0200, HyperSonix wrote: > I have a question for you, > Umbrello is very cool application to transport an idea into code. > > Umbrello support c++ code generation, > but if I have a new language, for example SystemC (a C++ library), > which it use intensive "#define" and particular C++ coding style. > the question is: > What do I do to add a modified version of C++ language or particular MACRO.? > > Is it simple? It's not complex. Just see the codegenerator.cpp file and the codegenerator directory in the source code for how to create them. There are two types of code generator, simple and complex. C++ is a complex one. You could either create a whole new simple one or add some options to the existing c++ one depending on how different this library is from normal C++. Jonathan ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl