http server
This commit is contained in:
@@ -61,7 +61,7 @@ pub const Node = struct {
|
||||
continue_expr: void,
|
||||
undef_literal: void,
|
||||
builtin_expr: void,
|
||||
foreign_expr: void,
|
||||
foreign_expr: ForeignExpr,
|
||||
library_decl: LibraryDecl,
|
||||
function_type_expr: FunctionTypeExpr,
|
||||
|
||||
@@ -368,8 +368,14 @@ pub const NamespaceDecl = struct {
|
||||
decls: []const *Node,
|
||||
};
|
||||
|
||||
pub const ForeignExpr = struct {
|
||||
library_ref: ?[]const u8 = null, // identifier name of library constant
|
||||
c_name: ?[]const u8 = null, // C symbol name override
|
||||
};
|
||||
|
||||
pub const LibraryDecl = struct {
|
||||
lib_name: []const u8,
|
||||
name: []const u8, // sx-side constant name
|
||||
};
|
||||
|
||||
pub const FunctionTypeExpr = struct {
|
||||
|
||||
Reference in New Issue
Block a user