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

27 lines
344 B
Markdown

# My first interpreter
Code for a very simple interpreter.
Accompanying blogpost: https://alloca.space/blog/my-first-interpreter.html
## Example Program
```go
sum = 0
counter = 10
while counter {
sum = add(sum, counter)
counter = add(counter, negate(1))
}
print(sum)
```
## Build and run
Requires: gcc, make
```sh
make run
```