šļø Amiga Knowledge Base
65,174 curated entries on demos, software, hardware and history of the Commodore Amiga
BLITZ CASE
The program can be used to construct Blitz Basic 2 programs using Computer Aided Software Engineering (CASE), which basically means that you build up the program using flowchart symbols to represent the various procedures, decisions, loops and processes. Of course, you couldn`t simply build a complete program this way, so source code is entered into a text editor. This differs from the usual approach however. The source code for a particular program should be split into `blocks` of code. These can be either a PROCESS (Can be used for anything), a PREPARATION (Generally used for routines involving initialisation) or INPUTS (Used for Input/Output routines) Each of these icons can point to a label in the source code. Eg, you could have a Process at the start of your program which referred to a label in the source code called INIT (a label is simply a line with the label name on it). Any source code found between the label INIT and the label INITEND would be included in the final source code. When you have finished the design of your program you use the Generate Code option to produce an ASCII listing of your program. This can then be inserted into the Blitz Basic 2 compiler for testing and compiling. Although initially hard to understand, Computer Aided Software Engineering is actually a very easy way to program since the actual structure is very easy to see on-screen. Close examination of the in-built example included with this demo (the source code generated from this can be found in the Examples drawer of this disk) will probably be very enlightening.