yEdGen code generator
yEdGen is a java 1.7 swing application (it also can be used as a command line application, enable you batch processing). You can open a graphml file, select a generator (yEdGen has an ANSI C generator code installed by default, but you can develop your own code generator for other languages/versions/etc) , click on start button and get your ANSI C code generated!.
How can I create a graphml file? You can do it with yEd Graph Editor.
What kind of diagrams yEdGen working with? You can use Flowcharts diagram and save them as graphml file.
You must follow some general rules to draw a flowchart (yEd based on, you can hover the symbol to see its name):
You must follow some specific rules to draw a flowchart using our "ANSI C" generator:
Sintax for "Manual Input": it can be labeled as:
<prompt>:<variable>:<data type>
i.e.
Input a Number:num:int
Sintax for "Begin Loop": it can be labeled as:
for loop:
<var>=<first value>..<last value>
i.e.
n=1..10
while loop:
mientras <condition>
i.e.
mientras a < 10
do loop:
hacer
i.e.
hacer
Sintax for "End Loop": it can be labeled as:
for loop: it doesn't requiere a label
while loop: it doesn't requiere a label
do loop:
mientras <condition>
i.e.
mientras a < 10
Directory Info:
/yEdgen/app application interface
/yEdgen/model xml parsing, properties manage, algorithm representation (nodes and edges), source generator interface, utilities classes, etc.
/yEdgen/examples graphml examples maded with yEd Graph Editor.
/yEdgen/plugins source generators that implements source generator model interface.
Properties files:
There is a property file for global application parameters at /yEdgen/app/App.properties .
There is a property file for ANSI C generator code application parameters at /yEdgen/plugins/AnsiC.properties .