Skip to content
This repository has been archived by the owner on Feb 10, 2023. It is now read-only.

sp5/sam-basic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sam-basic

This is the interpreter for the SAM-BASIC language, which I created while procrastinating on my college applications. I have never written a line of BASIC code in my life, but this language is built on what I've seen of it:

  • Line numbers
  • Goto Statement
  • ALL CAPS

This said, BASIC looks to have an actual parser, while SAM-BASIC has a something a cat might have coughed up. Everything is done with regular expressions.

Some goals for the future:

  • Add arrays
  • Remove all uses of eval from the source
  • Add metadata to events
  • Make the UNDEFINED event fire when it's supposed to
  • Add key-by-key input
  • Rewrite in C
  • Add functions
  • Add DO statement that executes a series of statements
  • Add interface for C APIs

The interpreter is made with some of the worst Python code I've ever written.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published