Skip to content

guytavor/TinyBasicKotlin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TinyBasic Interpreter

ZX Spectrum Basic Interpreter (sort of) 🌈

This was written as an exercise of manually writing an interpreter. ...and to work on my kotlin skills.

While working on the interpreter, I came by the "Basic Programming" book which I had growing up learning basic for my ZX Spectrum 48k.

I implemented the rest of the basic needed for running the coolest program in this book: Date to Day.

This included: String support with slicing, Dim support, READ DATA & RESTORE, Multi print and input, FOR loop, and full expression paring.

The first TinyBasic version was written in a few hours, with help from: https://web.eecs.utk.edu/~azh/blog/teenytinycompiler1.html

The ZXSpectrum work was a bit more time-consuming.

Kotlin is just a joy to read & write.

But I did it. It turns out that I was born on a Saturday.

About

ZX Spectrum Basic interpreter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published