This is a collection of BASIC programs that will exercise various features of the langauge.
This is part of the TrekBasic family of BASIC programming tools.
- TrekBasic - Basic compiler and interpreter in Python
- TrekBasicJ - Basic compiler and interpreter in Java
- BasicRS - Basic compiler written in Rust
- BasicTestSuite - A test suite of BASIC Programs
- TrekBot - A tool to exercise the superstartrek program
All versions, intepreted and compiled, are intended to by byte-by-byte compatible, but are not there yet - but they are close. TrekBot and BasicTestSuite are part of the plan to ensure full compatibility.
Test runners (in Python, Java and Rust) simply iterate over all *.bas files found in the directory. Those test runners are found in their respective projects, above.
The test programs are supposed to run and return a 0 (success) status code.
The test runners chack the first line for a rem statement with directives. A STOP would normally indicate an error, but with EXPECT_EXIT_CODE=1, exiting with 1 (STOP) is considered success.
100 REM @EXPECT_EXIT_CODE=1
This indicates that a program should finish with a STOP command, which would normally be an error.