S T R U C T O R I Z E R

GNU General Public License



Read here ...
#8: Bugs in C- and Java-generators
Priority: 
normal
Status: 
closed
On wrote:
Theldo Cruz Franqueira reported on 2009/08/17:

Unfortunately, there are minor problems coding C and Java. Some control structures, like "while" in C, e.g., lacks () around condition and "case" before options. Java "while" includes a misplaced "not" (!).
It would be better for Java to have readln() as a function, and not procedure, since System.in.readln() only reads string value and does not have parameters.
On wrote:
I've added a procedure to detect brackets and add some if needed.

In the Java generator "readln(A)" will be replaced by "A=(new Scanner(System.in)).nextLine()". If "A" is something else then a String, the conversion has to be done manually after the code generation.

Concerning code-generation, please remember that NS diagrams, as defined by Nassi & Shneiderman, are not bound to any language and thus a convertion into some source code is only possible if the structogram contains instructions that are the one of the language you want them to export to!

=> fixed for version 3.16