This commit is contained in:
agra
2026-02-18 15:59:49 +02:00
parent 2f5eb84259
commit 188ffed5af
13 changed files with 414 additions and 47 deletions

View File

@@ -29,6 +29,7 @@ pub const Tag = enum {
kw_or,
kw_Type, // Type (metatype keyword)
kw_null, // null
kw_push, // push
// Symbols
colon, // :
@@ -82,6 +83,7 @@ pub const Tag = enum {
hash_builtin, // #builtin
hash_foreign, // #foreign
hash_library, // #library
hash_using, // #using
triple_minus, // ---
// Special
@@ -178,6 +180,7 @@ pub const keywords = std.StaticStringMap(Tag).initComptime(.{
.{ "or", .kw_or },
.{ "Type", .kw_Type },
.{ "null", .kw_null },
.{ "push", .kw_push },
});
pub fn getKeyword(bytes: []const u8) ?Tag {