gists/first-interpreter
2026-01-09 09:49:45 +02:00
..
src switch to a makefile 2026-01-08 23:14:56 +02:00
.gitignore update makefile and readme 2026-01-09 09:49:45 +02:00
Makefile update makefile and readme 2026-01-09 09:49:45 +02:00
program.code my first interpreter 2026-01-03 23:59:53 +02:00
readme.md update makefile and readme 2026-01-09 09:49:45 +02:00

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