Bunch of updates

This commit is contained in:
allexanderbergmns
2026-08-24 18:24:58 +02:00
parent 50712c5f17
commit 4b7a2f4c67
10 changed files with 626 additions and 22 deletions
+2
View File
@@ -51,6 +51,7 @@ pub enum TokKind {
kw_assert
kw_import
kw_enum
kw_const
}
pub struct Tok {
@@ -278,6 +279,7 @@ fn (mut l Lexer) lex_ident(line int) Tok {
'assert' { TokKind.kw_assert }
'import' { TokKind.kw_import }
'enum' { TokKind.kw_enum }
'const' { TokKind.kw_const }
else { TokKind.ident }
}
return Tok{ kind: kind, lit: lit, line: line }