flâneur

prologic/monkey: 🐵 Monkey programming language interpreter designed in Writing An Interpreter In Go and Writing a Compiler in Go. A step-by-step walk-through where each commit is a fully working part. Read the books… - monkey - Mills

git.mills.io · 2,163 words · saved by 1 readers

Monkey programming language interpreter designed in Writing An Interpreter In Go. A step-by-step walk-through where each commit is a fully working part. Read the book and follow along with the commit history. For the last few weeks I've been working on optimizing this implementation of Monkey. Still working on a self-hosted Monkey lang (Monkey written in Monkey). Read the books and follow along with the following commit history. (This also happens to be the elapsed days I took to read both books!) See: Reading Guide Please note that whilst reading the awesome books I slightly modified this version of Monkey-lang in some places. For example I opted to have a single RETURN Opcode. You can also execute program files by invoking monkey <filename> There are also some command-line options: To build run make. To run the tests run make test At the time of writing (06 January 2024) the VM that interprets Monkey bytecode is about as optimized as it can get without resorting to rewriting the virt

monkey-lang Monkey programming language interpreter designed in Writing An Interpreter In Go. A step-by-step walk-through where each commit is a fully working part. Read the book and follow along with the commit history. monkey-lang Status 06 January 2024 Sometime In the past Read and Follow Quick start Development Profiling Go Profiler Hyperfine Examples Hello World Fibonacci FizzBuzz Embedding Performance Syntax Programs Types Variable Bindings Arithmetic Expressions Conditional Expressions While Loops Functions and Closures Recursive Functions Strings Arrays…

saved by

related reading