| Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
|
|
- Change lexer functions to return a option
- Return None variant instead of \u0000 in case of EOF
- Test lexer against a sample program
|
|
This changes token from having an owned string instead opting to use a
str with the same lifetime as the lexer itself.
|
|
Thanks for pointing out that using `let` and `let mut` was stupid for a
scripting language @mworzala
|
|
The very initial language designs I came up with for Sloth. Likely
contains inconsistencies and definitely contains things that will be
changed in the future. This is basically just a dump of every idea I've
had for the language thus far.
As for the lexer right now it is heavily based on the one from the
Crafting Interpretrs book and doesn't yet parse Sloth grammar.
|