This commit is contained in:
agra
2026-02-11 20:41:43 +02:00
parent 94b0296fd5
commit 9d96f05d3b
13 changed files with 460 additions and 70 deletions

View File

@@ -61,6 +61,8 @@ pub const Node = struct {
continue_expr: void,
undef_literal: void,
builtin_expr: void,
foreign_expr: void,
library_decl: LibraryDecl,
pub fn declName(self: Data) ?[]const u8 {
return switch (self) {
@@ -353,3 +355,7 @@ pub const NamespaceDecl = struct {
name: []const u8,
decls: []const *Node,
};
pub const LibraryDecl = struct {
lib_name: []const u8,
};