Building an Interpreter Series
After rumbling a lot about learning Programming Language Theory (PLT), I finally decided to commit and learn this field that I care about.
I wanted to start simple, with a friendly resource to just get started. After collecting a lot of resources, most of them were heavy books and papers, I got a copy of the Writing an interpreter in Go
book. It seemed to be the simplest resource to get started in the field and it also let me be very practical in terms of engineering a compiler.
But instead of Go, I wanted to use a language I'm most familiar nowadays. So TypeScript it's.
This book creates an interpreter for the Monkey programming language and we'll see in each chapter of this series the building blocks of the interpreter.
If you want to see the code, I have a public Github repository for this implementation: Crafting an Interpreter, a programming language's compiler written in TypeScript.
Building an Interpreter Series
- Building an Interpreter: Lexical Analysis - Part 1
- Building an Interpreter: Lexical Analysis - Part 2
- Building an Interpreter: Lexical Analysis - Part 3
- Building an Interpreter: REPL
- Building an Interpreter: Parser - Part 1: Fundamental parts of AST and basic statements
Have fun, keep learning, and always keep coding!