Development of the Monkey programming language with zig based on Writing an Interpreter with Go by Thorsten Ball
- Use zigup or zvm to install the zig nightly compiler
- Install the
0.12.0-dev.1828+225fe6ddb
zig compiler - Run with
zig build run
- Lexer
- Parser:
- Identifiers
- Integer Literals
- Boolean Literals
- Function Literals
- Assignment statements
- Return statements
- Expressions:
- Prefix expressions
- Infix expressions
- Grouped expressions
- If expressions
- Grouped expressions
- Call expressions
- Evaluator:
- Object System
- Integers
- Booleans
- Null
- Strings:
- Concatenation
- Expressions
- Integer Literals
- Boolean Literals
- Null
- Infix Expressions
- Prefix Expressions
- Conditionals
- Return Statements
- Error handling
- Bindings and Environment
- Functions and Function Calls