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.
The Lexer is the first stage (ignoring the semi-parser) of converting
Spindle code itto a result. In summary, it takes your text and condenses
it into tokens
The lexer goes though your text - character by character (ignoring tabs
and spaces, but taking note of newlines). In a sense, it translate your
text file into a more readable term for later steps. There is some minor
error checking at this stage, as it ensures you use the write syntax for
simple things. The process described above occurs in the make_tokens()
function. This:
a <-- 10 + 5
Is transformed into something like this:
[IDENTIFIER:a, EE, INT:10, PLUS, INT:5
The lexer also defines an advance() function that moves the current token
to the next one.