Tiny Interpreter Part 2 of 3
Tiny Interpreter:
Building the Tree
Tiny Interpreter: Building the TreeNOV 17, 2025From source text to a value.
The parser reads tokens and builds a syntax tree. Mermaid diagrams are drawn in the browser; the button under each one opens it full screen.
The pipeline
flowchart LR A[Source text] --> B(Scanner) B -->|tokens| C(Parser) C -->|tree| D(Evaluator) D --> E[Value]
Precedence
Each level of precedence is one function:
| |