Here’s Another Toy Language

Elliot Chance
4 min readDec 7, 2022

I have spent years researching, learning and honing my skills as a language designer to build the many statically-typed, virtual machine powered complex compiled languages. Each with their own expertly written parsers, based on rigorous, well thought out syntax that is immaculately documented to produce the finest programming languages that can be found anywhere…

But sometimes. Just sometimes. I like to throw caution to the wind as I cobble together fragments of late night delirium, mashing together the horribly incompatible ideas of languages long gone with poorly understood foundations that is my programming language segment…

Meanwhile…

Yeah. I did it again. This time I wanted to do something different. Lately, I’ve been thinking about the question: “Can’t you make an ultra simple language that is also useful enough as a general purpose language?”

There are, of course, super simple languages out there such as Brainfuck that take this premise to the extreme. While this is interesting, it’s certainly not useful as a general purpose language, so let’s set some ground rules:

  1. All in one file. A single script that contains the interpreter and library (built in functions). I’ll be using vanilla JavaScript, so all we need to run is a single node command to run a program from a file.

--

--

Elliot Chance

I’m a data nerd and TDD enthusiast originally from Sydney. Currently working for Uber in New York. My thoughts here are my own. 🤓 elliotchance@gmail.com