Warning! This documentation is for contributors who wish to help out the project.

It details how the project itself works, not how to write code in it. If you would like to know how to write code in Spindle, please look at the user documentation!
With that out of the way, this document will lay out how Spindle works and will help you contribute to it.
If you want a high-level overview of how Spindle works, you're in just the right place!

Spindle: From Code to Execution

This explanation dives into how Spindle, a programming language, works behind the scenes, transforming your code into a running program. It's important to note that this explanation is geared towards developers contributing to Spindle, not for users writing Spindle code.

The Grand Tour:

Spindle's journey from code to execution involves several key stages:

  1. The Warm-Up: Semi-Parsing (Not User-Facing)

  2. Step 1: The Lexer - Turning Text into Tokens

  3. Step 2: The Parser - Adding Meaning to Tokens

  4. Step 3: The Interpreter - From Meaning to Results

Understanding the Process:

This breakdown helps visualize how Spindle transforms your code. Each stage builds upon the last, ultimately resulting in a running program. If you're interested in contributing to Spindle's development, understanding these steps is crucial for working with the interpreter and parser logic.