Skip to content

cocode/BasicRS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logo BasicRS

BasicRS is a Rust implementation of both a BASIC interpreter and a BASIC compiler.

BasicRS is part of the TrekBasic family of BASIC programming tools.

LOGO Project Description Language Interpreter Compiler
Logo TrekBasic Basic compiler and interpreter Python Yes Yes
Logo TrekBasicJ Basic compiler and interpreter Java Yes Yes
Logo BasicRS Basic compiler and interpreter Rust Yes Yes
Logo BasicTestSuite A test suite for Basic BASIC - -
Logo TrekBot A tool to exercise the superstartrek program Rust - -

All versions, interpreted 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.

My goal was to be able to play the old Star Trek game, which was written in BASIC.

https://en.wikipedia.org/wiki/Star_Trek_(1971_video_game). 

I have achieved that goal.

To Run

cargo run -- superstartrek.bas

OR

target/debug/basic_rs superstartrek.bas

Shell

If you want to use the shell for BASIC which is the command line "IDE" - sort of.

It provides breakpoints, single stepping, code coverage, and more.

./target/debug/basic_shell superstartrek.bas

or just

./target/debug/basic_shell

Releases

No releases published

Packages

No packages published