We’ve written basic parsers. Now we can take a step up on the abstraction ladder and create a parser that…
REPL stands for Read, Evaluate, and Print Loop. It is also referred to as the interactive interpreter for a language. For example, if you open up Terminal or iTerm, we can look at Python’s REPL:
REPL
Makes the CLI interface a bit more robust and useful
Having to start the interpreter, then type .load_file, etc is cumbersome. Let’s change it so that the VM…
.load_file
So You Want to Build a Language VM — Part 12
What are Strings?
Our assembler right now can recognize one opcode, load. We need to teach it to recognize all the…
load
Hi there! This is the first post in a series on building a VM/interpreter for a programming language in Rust. Its something…
We could torture ourselves by writing all our programs in hex, and if that’s your thing, this section is…
Right now, we have one place to store data: registers. These are great, but we only have 32 of them, and they only store i32s. What if we want to store, say, strings…
Our current REPL doesn’t do a ton, so let’s fix that. In this post, we’ll be adding some commands to look at the…
Hey everyone! I know I promised labels in the previous part, but as I was writing it, I realized there are some prerequisites we can do. Completing them will make…