sdl phase 1

This commit is contained in:
agra
2026-02-12 12:27:35 +02:00
parent cfac6791cb
commit 1087bd1977
10 changed files with 820 additions and 10 deletions

View File

@@ -63,6 +63,7 @@ pub const Node = struct {
builtin_expr: void,
foreign_expr: void,
library_decl: LibraryDecl,
function_type_expr: FunctionTypeExpr,
pub fn declName(self: Data) ?[]const u8 {
return switch (self) {
@@ -359,3 +360,8 @@ pub const NamespaceDecl = struct {
pub const LibraryDecl = struct {
lib_name: []const u8,
};
pub const FunctionTypeExpr = struct {
param_types: []const *Node,
return_type: ?*Node, // null = void return
};