This guide attempts to walk through the structure of the Interpreter
class of the Myst language.
The source code for the Interpreter is split into multiple files. The main file is src/myst/interpreter.cr
, but most of the actual implementation lives under the src/myst/interpreter
directory.
This guide is split into various sections to help gradually build a full understanding, and to simplify explanations further on in the guide. In order, we'll cover:
- Primitives - basic value types and the differences between them.
- Scopes - value containers, closures, and nesting.