Implemented extern functions

This commit is contained in:
2025-02-12 00:04:30 +01:00
parent 1083db6ab2
commit 3b66dae1d4
24 changed files with 304 additions and 169 deletions

View File

@ -31,6 +31,8 @@ func ByName(name string, pkg string, structs map[string]*Struct) Type {
switch name {
case "Any":
return Any
case "Bool":
return Bool
case "Int":
return Int
case "Int64":
@ -47,6 +49,8 @@ func ByName(name string, pkg string, structs map[string]*Struct) Type {
return Float64
case "Float32":
return Float32
case "UInt":
return UInt
}
typ, exists := structs[pkg+"."+name]

View File

@ -13,6 +13,8 @@ var (
)
var (
Bool = Int
Int = Int64
Float = Float64
UInt = Int
)