Documentation
Documentation
The BB2 C port is a translation of Blitz Basic 2 into C: the compiler, the editor and the libraries that provide the commands. The chapters below explain how to build and use it, how it works inside, and where it differs from the original. They are in reading order: the first chapters are for everyone who wants to use the port, the last ones for people who write libraries or work on the port itself.
Where to start
- You wrote Blitz Basic 2 programs and want to again. Build the port, set up the emulator and write your first program (Building the BB2 C port, Running it in an emulator, Your first program), then read The editor, How blitz2 works, The language for looking up a statement or an operator, and Differences from the original.
- You want to work on the port. After the Introduction, read Project structure and its Tests, then How blitz2 works and Inside the compiler source, and Comparing with the original yourself.
- You want to write a library. After the Introduction and How blitz2 works, follow the chapter blitz2 internals up to Writing your own userlib and Library variants.
- You use AmiBlitz3. After the Introduction, read AB3 mode and AB3 compared with blitz2.
The chapters
What the BB2 C port is, how to build it and how to try it in an emulator.
TED, the editor of Blitz Basic 2: typing, blocks, search and replace, files, options, keys and menus.
A program on its way from source text to an executable.
A reference of the language: types, expressions, program flow, procedures, directives and macros.
What the libraries provide, and how to look up a command.
Where the port differs from Blitz Basic 2: the fixed bugs, the bugs not fixed yet and the extensions.
Compiling AmiBlitz3 sources.
What the AB3 mode changes.
Writing libraries in C and reading the compiler’s source.
The parts of the project, the tests and the checks of the build.