arena
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user