| .. | ||
| src | ||
| .gitignore | ||
| Makefile | ||
| program.code | ||
| readme.md | ||
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