Mostly a copy/paste of Simple Virtual Machine by Bartosz Sypytkowski.
cc simple-vm.c && ./a.out
It prints 8
because it runs the equivalent of fib(6)
(hard-coded in the source).
- Loxy (Lox in C, A Tree-walk Interpreter, from Crafting Interpreters)
- Glox (Lox in Go, A Tree-walk Interpreter, from Crafting Interpreters)
- Xol (Lox in C, A Bytecode Virtual Machine, from Crafting Interpreters)
- Xolg (Lox in Go, A Bytecode Virtual Machine, from Crafting Interpreters)