Commit Graph

10 Commits

Author SHA1 Message Date
53f4081f6f fix: correct loop condition in comment parsing
The loop was checking 'for i.Done()' instead of 'for !i.Done()',
which prevented the comment content from being consumed.
This caused the tokenizer to treat comment text as code.
2026-01-12 20:59:34 -05:00
b588754552 feat: broken 2026-01-12 20:58:41 -05:00
6418e05255 feat: add comment support to saccharine language
Add '#' comment syntax that works like Python comments.
Comments can take up a whole line or appear at the end of a line.
All characters after '#' until the next newline or EOF are ignored.

Closes #24
2026-01-12 20:53:38 -05:00
Max
2499921679 style: moved functions around 2025-12-30 15:58:14 -05:00
Max
14fc4b30da feat: cleaner parsing functions 2025-12-27 20:46:10 -05:00
Max
c37e96770f feat: tokenizer accepts braces, line terminator, and equal sign 2025-12-27 19:52:18 -05:00
Max
bf0edfc593 style: renamed token index to column 2025-12-27 02:43:17 -05:00
Max
1896cd652d feat: better error messages 2025-12-27 02:39:56 -05:00
Max
884180de92 feat: error for when there is more source code than parsed 2025-12-27 02:08:18 -05:00
Max
a05a63627e feat: better recursive descent 2025-12-27 01:18:06 -05:00