Live data from Hacker News

A BASIC interpreter in Swift for Apple's birthday

github.com

1–3 of 3 posts

Re: A BASIC interpreter in Swift for Apple's birthday

#2
I first used an Apple IIe in an afterschool program when I was 7. I learned the rudiments of BASIC and wrote a bunch of spaghetti GOTOs. I woke up this morning and thought it'd be nice to write a little "happy birthday" BASIC program and throw it up on social media to celebrate Apple's 50th. Quick, easy, fun. Then I wanted to verify that it worked, but didn't want to do it with a GUI program…I needed to see it in green on black! So, I got a little more ambitious, and decided I'd make a BASIC interpreter in modern Swift.

Here it is, along with a few sample programs, including Steve Jobs' 1975 Atari Horoscope Program that Adafruit recreated earlier this year.

The package includes a Tutorial and Language Reference so that my 7-year-old can follow along.

Re: A BASIC interpreter in Swift for Apple's birthday

#3
post #2

I first used an Apple IIe in an afterschool program when I was 7. I learned the rudiments of BASIC and wrote a bunch of spaghetti GOTOs. I woke up this morning and thought it'd be nice to write a little "happy birthday" BASIC program and throw it up on social media to celebrate Apple's 50th. Quick, easy, fun. Then I wanted to verify that it worked, but didn't want to do it with a GUI program…I needed to see it in gre…

[dead]