TrekBasic is a family of compilers, interpreters and tools for the BASIC programming language.
All compiler and interpreter versions are intended to be byte-by-byte compatible. They're not there yet — but they are close. TrekBot and BasicTestSuite are part of the plan to ensure full compatibility.
TrekBasic is a family of tools for working with the basic programming language.
LOGO | Tool | Description | Language | Interpreter | Compiler |
---|---|---|---|---|---|
![]() |
TrekBasic | Basic compiler and interpreter | Python | Yes | Yes |
![]() |
TrekBasicJ | Basic compiler and interpreter | Java | Yes | Yes |
![]() |
BasicRS | Basic interpreter | Rust | Yes | pending |
![]() |
BasicTestSuite | A test suite for Basic | BASIC | - | - |
![]() |
TrekBot | A tool to exercise the superstartrek program | Rust | - | - |
TrekBot is a bot that plays Super Star Trek. It's used for automated testing and code coverage.
- The Rust version of TrekBot behaves like a human player by using stdin/stdout, making it compatible with any text-based implementation.
- The Python Version of TrekBot works by accessing internal data structures of the Python version of TrekBasic, and is therefore only usable with TrekBasic in Python.
The Basic Test Suite is a collection of BASIC programs used to test interpreter and compiler behavior.
With a proper test runner, it can execute programs and verify return codes and exceptions.
Each implementation (TrekBasic, TrekBasicJ, BasicRS) includes its own runner.
The initial goal was to be able to play the old Super Star Trek game, which was written in BASIC. That goal has been achieved.