Skip to content
How it Works

How It Works

Risor follows standard patterns for implementing a scripting language. This includes parsing source code into an Abstract Syntax Tree (AST), compiling the AST into bytecode, and then executing the bytecode on a lightweight virtual machine.

The excellent book Writing an Interpreter in Go (opens in a new tab) was the original inspiration for the project.

The Internals

Risor includes the following internal components: