| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| DeveloperDoc_Moritz2_2010_12_28.chm | 2010-10-28 | 1.7 MB | |
| Src_xml2abc_2010_10_28.zip | 2010-10-28 | 73.0 kB | |
| ReadMe_2010_10_28.txt | 2010-10-28 | 9.1 kB | |
| Moritz2_Linux_2010_10_28.zip | 2010-10-28 | 500.0 kB | |
| DeveloperDoc_Moritz2_2010_10_28.zip | 2010-10-28 | 1.9 MB | |
| Moritz2_WIN32_2010_10_28.zip | 2010-10-28 | 899.6 kB | |
| Totals: 6 Items | 5.0 MB | 0 | |
Moritz 1.9.02 Distribution
Copyright (C) 2004-2010 by Eckard Klotz.
Permission to use, copy, modify, and distribute this software and its
documentation under the terms of the GNU General Public License is hereby
granted. No representations are made about the suitability of this software for
any purpose. It is provided "as is" without express or implied warranty.
See the GNU General Public License for more details.
Documents produced by Moritz are derivative works derived from the input used in
their production; they are not affected by this license.
As help-tool for Doxygen (www.Doxygen.org) Moritz was original designed as a
source-code analysing program that generates nassi-shneiderman diagrams of the
functions and methods. But this version may also be used to analyse other
xml-content to generate data-tables or other files.
Nativly this diagrams are stored as html-files. Moritz may be also used to
gnerate dot-scripts. Thus it is possible to genarate real graphics by using dot
from the graphviz-toolkit (www.graphviz.org). The output of Moritz may be
included in a documentation generated by Doxygen via commands like htmlinclude
or dotfile.
The old Moritz has no own source parser and uses the xml-output of an other parser-
program as base-information. But this new designed version of Moritz comes along
with on own parser-tool named abc2xml formaly known as MuLanPa
(www.sourceforge.net/projects/mulanpa/) that analyses the source-code to generate
xml-files wich represent the algorithm and data-structure of the source.
abc2xml will be configured by external grammar-description. Thus it may be may be
used for several programming-languages. the binary of Moritz itself has also a new
name xml2abc to make clearer what it does
abc2xml and xml2abc are console- or terminal-application which have to be started
via command-line. Both programs are controled by an external configuration-
files like a grammar-specification that describes the programming-language, a
snipet-specification that describes the diagram-scripts and xml-defined
configurations of the behaviour-details.
You can find more information under "www.sourceforge.net/projects/moritz/"
use the forum.
This Distribution contains 4 sub-directories:
res : additional ressources for Moritz and the gif-pictures of the diagonal
lines to create the if- and switch-tables
src : example sources
xml : input-files for xml2abc
nsd : html diagram-output of xml2abc
des : additional html diagram-output of xml2abc
First Steps
1. Start the bat/sh-file named MxMrtz. It should a start demo-run of abc2xml and
xml2abc. If this process ends successfully you can find an xml-output of
abc2xml in the folder xm and the html-output of Moritz in the folder nsd.
3. Copy your own sources in to the folder src and delete the original example-
sources or rename their file-attachments. Look in to the folder nsd to watch
the results.
Command-Line Arguments
Command-Line arguments are used to give Moritz some base-informations about the
directories and file which should be used .
The following arguments has to been used without an own configuration-file:
SP[source-path] source-path of the xml-files
DP[destination-path] destination-path of the created diagrams
RP[resource-path] path with additional work-files of abc2xml and xml2abc
The following argument tells the both binaries to use another configuration-file:
CF[configuration-file] file with detail-configurations default are abc2xml_cfg.xml
and xml2abc_cfg.xml
The following arguments may be used to override the equal information in the
used configuration-file:
SF[source-file] first xml-file default is index.xml
DP[destination-path] destination-path of the created diagrams
RP[resource-path] path with additional work-files of abc2xml and xml2abc
Here are some examples:
abc2xml SP.\src\ DP.\xml\ RP.\res\ > abc2xml.txt
xml2abc SP.\xml\ DP.\nsd\ RP.\res\ > xml2abc.txt
This win32-example starts abc2xml to create xml-files at "ROOT\xml" and
xml2abc to create nassi-sheiderman-files at "ROOT\nsd". The
resource-path is the home-directory of Moritz.
abc2xml CFhome:/project/config/abc2xml_cfg.xml
xml2abc CFhome:/project/config/xml2abc_cfg.xml
This linux-example starts abc2xml and xml2abc with the own configuration-files
in the directory "home:/project/config". All other informations are placed in
this configuration file.
If you have an other operation-sytem you have to download the source-files and
compile them on your system you have change the bat-file into a shell-script of
your system also.
Using the help argument of xml2abc
Moritz offers a help-argument to provide online information
xml2abc -> general program-information
xml2abc help -> shows this text
xml2abc help All -> shows all help-information (rerout it into a file!)
xml2abc help Resources -> general overview about the neded resource-files
xml2abc help Arguments -> general overview about the comand-line arguments
xml2abc help SP -> describes the source-path argument
xml2abc help DP -> describes the destination-path argument
xml2abc help CF -> describes the configuration-file argument
xml2abc help SF -> describes the source-file argument
xml2abc help RP -> describes the resource-path argument
xml2abc help CP -> describes the additional configuration-path argument
To build xml2abc 1.9.y the following files has to be used:
src\
diverse\
cpp\
String_imp.cpp
h\
String_imp.h
Moritz2\
cpp\
main.cpp
gen_nsd.cpp
h\
moritz2.h
gen_nsd.h
MuLanPa\
cpp\
action.cpp
h\
action.h
prs_tpdef.h
process\
cpp\
notation.cpp
ntn_spirit.cpp
process.cpp
transform.cpp
h\
notation.h
ntn_spirit.h
process.h
transform.h
tool_xml\
TiXmlNode_ao.cpp
TiXmlNode_ao.h
TiXml_ao.cpp
TiXml_ao.h
xml2abc 1.9.y is a common console-application but 2 special libraries are
necessary.
1.TinyXml:http://sourceforge.net/projects/tinyxml/(currently used Version: 2.6.1)
TinyXml supports all xml-operations done by MuLanPa. It comes along as a couple
of source- and header-files. I don't use them in a precompiled version, thus all
nearly all c-files of TinyXml are part of the normal compilation of xml2abc and
the search-path to the location of its headers has to be set. But don't try to
compile the source-file named "xmltest.cpp", because this contains an own main-
function but no library-content. For the compiler the define "TIXML_USE_STL" has
to be set, since this is the special mode of the library used for xml2abc.
2.Spirit: http://sourceforge.net/projects/spirit/ (currently used Version: 1.8.5)
Spirit is the real parser used by MuLanPa. Spirit is part of the huge boost-
library. But the older version 1.8.5 used here is also available as stand-alone
version. The current version of Spirit is 2.1.0. But it seams only available as
small part of the gigantic boost-package. Since I had to learn that some users
don't feal comfortable to download such a amount of data (over 60Mb as zip-file)
only for using a small peace of it, I started with the older standalone-version.
It was a hard work to learn how to deal with it, but it works now and I ask my
self if it will be really necessary to switch to the newer version. How ever to
use the spirit-library, it is only necessary to set the search-path to the root-
directory "spirit-1.8.5-miniboost" where the folder called "boost" is located.
I'm not very familiar with make-files and use an ide (DevC++, Code-Blocks,
MinGW Developer-Studio, ...) to manage the project and the compile-process.
I don't use special compiler-options to optimize the program. For me the only
steps to compile the sources is to add them into the ide-project, add the
3 h-paths and start the compilation.
Change-Log
Version 1.9.01
Alpha-release of Moritz2
Version 1.9.02
Debuging: Under linux pseudo-pathes "." and ".." produces pseudo-output by using tag "FolderName" -> check of file-attactment changed
Refactoring: Renaming of the binary from Moritz in xml2abc. The new name stands for the conversion of a text written in xml into (2) a defined language (abc).
New feature: The reimplementation of special commands to control the shape of the diagrams has stated