Menu

Home

Guillermo Cherencio

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):
1. starts the flowchart using "Start 1" symbol
2. ends the flowchart using "Terminator" symbol
3. use "Manual Input" for keyboard input
4. use "Display" for console output
5. use "Process" for arithmetic operations, assignments, etc
6. use "Decision" for decision or selection. You must label the decision symbol with a valid boolean expression. Allways decision finish with "Start 2" symbol (endif mark). There is only one "Start 2" symbol per decision. You must label the decision's arrows with "T,V,v,t,verdad,verdadero" for true arrow. You must label the decision's arrows with "F,f,M,m,false,falso,mentira" for false arrow.
7. starts a loop using "Begin Loop" symbol
8. ends a loop using "End Loop" symbol

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 .

Project Members:


Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.