Production pass: floats, GC, type checking, and tooling

Adds floats, bitwise ops, UTF-8 strings with methods, try/catch,
closures, generics validation, a compile-time type checker, a
mark-and-sweep GC, source-level debug info, constant folding, and
the repl/fmt/package-manager commands.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
This commit is contained in:
allexanderbergmns
2026-08-25 14:29:15 +02:00
parent b0a4da7e2f
commit 9b22be48a5
27 changed files with 3638 additions and 166 deletions
+13
View File
@@ -5,7 +5,9 @@ pub enum TokKind {
eof
ident
int_lit
float_lit
str_lit
str_interp
lparen
rparen
lbrace
@@ -20,6 +22,12 @@ pub enum TokKind {
star
slash
percent
amp
pipe
caret
tilde
lt_lt
gt_gt
eq_eq
not_eq
lt
@@ -56,6 +64,10 @@ pub enum TokKind {
kw_import
kw_enum
kw_const
kw_interface
kw_try
kw_catch
kw_throw
}
pub struct Tok {
@@ -63,4 +75,5 @@ pub:
kind TokKind
lit string
line int
col int // 1-based column within the line
}