Skip to content

Source Control

Kristian Virtanen edited this page Jan 18, 2026 · 2 revisions

Loading the code

BazzBasic takes a single filename as a parameter and extracts the code contained there into tokens before executing the program.

INCLUDE

  • Code inherited from another file via INCLUDE is read at the exact point in the file where the INCLUDE is.
  • Basically you could say, that the line where INCLUDE was called is replaced by the data from other file.

test.bas

INCLUDE "test2.bas"
PRINT a$

test2.bas

LET a$ = "Foo"

Result

BazzBasic reads these directly as a continuation of each other

LET a$ = "Foo"
PRINT a$

Clone this wiki locally