fix: lexer out of bounds

This commit is contained in:
2026-01-03 15:03:45 +01:00
parent 629b65e151
commit 1c04a058d7
3 changed files with 74 additions and 39 deletions

View File

@@ -1,3 +1,18 @@
extern putchar
fn hello() {
local h = 72
putchar(h)
local e = h - 3
putchar(e)
local l = h + 4
putchar(l)
putchar(l)
local o = 100 - 21
putchar(o)
}
fn main() {
hello()
putchar(3 * 3 + 1)
}