Improved type system

This commit is contained in:
Eduard Urbach 2024-08-08 12:55:25 +02:00
parent 8eabcf258d
commit 69a5fdc703
Signed by: eduard
GPG key ID: 49226B848C78F6C8
20 changed files with 111 additions and 67 deletions

16
src/types/Base.go Normal file
View file

@ -0,0 +1,16 @@
package types
var (
Float64 = &Type{Name: "Float64", Size: 8}
Float32 = &Type{Name: "Float32", Size: 4}
Int64 = &Type{Name: "Int64", Size: 8}
Int32 = &Type{Name: "Int32", Size: 4}
Int16 = &Type{Name: "Int16", Size: 2}
Int8 = &Type{Name: "Int8", Size: 1}
Pointer = &Type{Name: "Pointer", Size: 8}
)
var (
Float = Float64
Int = Int64
)