Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development

Moritz plugin

<< < (2/2)

MortenMacFly:
Ok - If you think of a plugin in terms of a graphical wizard its a new one. I don't know how flexible the interface of the Nassi Shneiderman plugin is, but maybe the MIME handler does allow opening these diagrams from another plugin. For running the Moritz tool from within the wizard I see no issue. For extracting functions... this might be different, cause CC has no public API you can query. This is a long-term discussion meanwhile because we see it would be nice, but I'm afraid it won't be implemented any time soon. that's why other plugin like Doxygen and/or the HeaderFixup plugin have their own parsers for functions you may be able to re-use.

In fact I have to admit that I am still sticking with Moritz1, so for me it was (is) still an extension to Doxygen. Maybe I should look into Moritz2 so that things getting clearer.

danselmi:
Hi

The  Nassi Shneiderman plugin is also able to generate a diagram from code. It uses boost::spirit to parse the code. It is able to parse parts of C language. It is possible to edit these diagrams and take back into code.

Sure, it is possible to change it's parser (it is not very good atm). So if you have some questions, don't hesitate to ask.

regards, danselmi

eckard_klotz:
Hello Danselmi.

Please don't take me wrong. I don't want to replace your plug-in. The focus of Moritz is still to generate additional input for tools like Doxygen. But since it is using its own binaries to parse the code and to generate diagram describing text-files it is possible to use it for other purposes also. That's why I asked  if the C::B team would be interested.

But I see it like Morten:

--- Quote ---This is a long-term discussion meanwhile
--- End quote ---
...
--- Quote --- but I'm afraid it won't be implemented any time soon.
--- End quote ---

For me the most important functionality would be a plug-in that helps the user to configure the parser (abc2xml) and the generator (xml2abc) like C::B offers as preferences dialogue for Doxygen.  A toolbar to insert special commands (comments with special content) and to run the tools and to show its shell output may be nice.

Once I was able to implement this and you accept my work as usable plug-in we may discuss what may be possible and useful also.

Best regards,
                     Eckard.

eckard_klotz:
Hello Everybody.

After 4 years of refactoring the first milestone having the next major release is nearly reached. The completely new developed Moritz2 presents with the demo-version 8 its first release-candidate (under https://www.moritz.sourceforge.net or https://www.sourceforge.net/projects/moritz/ use “Browse All Files”).

Most of the features already known from the older Moritz1 are still available:
1. Generation of Nassi-Shneiderman diagrams based on HTML.
2. Control of the diagrams by using special commands inside of comments.
Furthermore new features are available:
1.Generation of uml-like activity-diagrams based on dot( http://www.graphviz.org ).
2.Support of more programming-languages (C/Cpp, Python, Matlab, Pascal)

Another new feature is an own parser. Thus Moritz can be used independently from other tools to generate its output. Furthermore the xml-output created by the parser represents the parser-tree of the source in other words the algorithm and not the document-structure.
The new release contains one windows-distribution and one linux-distribution together with documentation-files (please use “Browse All Files” and ignore the download-proposal).
To use Moritz for different source projects an user-project is available, that contains only the needed output-folders and templates for the basic configurations. It should be copied near to the source-project and combined with the distribution (please refer the page „User-Project “ of the documentation)
If you want to build the binaries (abc2xml and xml2abc) by your self, you will find the sources of xml2abc in the current release of Moritz and the sources of abc2xml in the current release of its partner-project MuLanPa (under https://www.mulanpa.sourceforge.net or https://www.sourceforge.net/projects/mulanpa/ )

If you have questions or doubts you will find in both projects forum-places:
Source-Parser:
Discussion: https://sourceforge.net/p/mulanpa/discussion/
Bugs: https://sourceforge.net/p/mulanpa/tickets/
Diagram-Generator:
Discussion: https://sourceforge.net/p/moritz/discussion/
Bugs: https://sourceforge.net/p/moritz/bugs/
Even the development has reached a nearly stable point this means not that it is perfect. Thus please don't hesitate to use the forum.

One of the next steps for me will be to start the development of the Code::Blocks plug-in to support the use of the simple user-project like promised before. But since I’m new in writing plug-ins for C::B and in parallel I still have to do some work in finishing the release please be patient.

Best Regards,
                   Eckard Klotz.

Navigation

[0] Message Index

[*] Previous page

Go to full version