ast: Add use, tackle remaining low-hanging fruit

This commit is contained in:
2025-10-21 07:09:12 -04:00
parent 9cccac5910
commit ccb6bef6d9
5 changed files with 106 additions and 64 deletions

View File

@@ -307,13 +307,16 @@ impl<'t> Lexer<'t> {
"macro" => TKind::Macro,
"match" => TKind::Match,
"mod" => TKind::Module,
"mut" => TKind::Mut,
"or" => TKind::Or,
"pub" => TKind::Public,
"return" => TKind::Return,
"static" => TKind::Const, // TODO: Static
"static" => TKind::Static,
"struct" => TKind::Struct,
"then" => TKind::Do,
"true" => TKind::True,
"type" => TKind::Type,
"use" => TKind::Use,
"while" => TKind::While,
_ => token.kind,
},