Flow Chart Runner
 
Flow Chart runner is a program designed to teach an introductory class on algorithms. It allows to:
Visually design algorithms as flow charts (AFC) so that algorithms cannot contain syntax errors.
 
Compile the flow chart (or part of it) into a Minimal Simulated Machine Language (MSML).
Run the MSML compiled flow chart into a simulated environment and trace it step by step.
 
Edit/Write the program directly in MSML.
 
The Flow Chart Runner Machine Simulator has the following characteristics:
A memory space of about 4KBytes.
 
Supports three basic variable types: int, float and char.
 
Supports arrays (implemented as memory pointers).
 
32 MSML instructions including rand (to generate random numbers), input (input a number from keyboard), print (print a number), printc (print a character), basic math functions (sum, sub, mul, div, exp, log, pow, sin, cos), basic logical functions (and, or, not) and comparisons (gt, eq, lt).
 
The simulated CPU is stack based and has no internal registries.
Code: Flow Chart Runer
Wednesday, May 9, 2007