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 a BASIC Interpreter.

BasicRS 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, 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

About

An implementation of the BASIC programming language in Rust

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published