feat: add comment support to saccharine language #25

Merged
mvhutz merged 3 commits from feat/comment-support into main 2026-01-13 02:00:01 +00:00

3 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