gists/first-interpreter/readme.md
2026-01-09 09:49:45 +02:00

344 B

My first interpreter

Code for a very simple interpreter.

Accompanying blogpost: https://alloca.space/blog/my-first-interpreter.html

Example Program

sum = 0
counter = 10

while counter {
    sum = add(sum, counter)
    counter = add(counter, negate(1))
}

print(sum)

Build and run

Requires: gcc, make

make run