Commit Graph

2 Commits

Author SHA1 Message Date
wash b904813cef lang: replace stack-based parser with a recursive parser 2026-04-06 18:25:43 +01:00
wash 84e52b1649 lang: ast: replace var keyword with global
local variables are now created automatically when they are first assigned to.

the global keyword can be used to declare that a name refers to a global variable instead,
at which point, assigning to the name results in the assignment referencing the global variable
instead of allocating a new global variable.
2025-09-08 15:52:29 +01:00