sdl phase 1
This commit is contained in:
@@ -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
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user