Improved type system

This commit is contained in:
2024-08-08 12:55:25 +02:00
parent d624a5f895
commit 5d9be01a85
20 changed files with 111 additions and 67 deletions

View File

@ -1,10 +1,8 @@
package types
type Type string
const (
Invalid = ""
Any = "Any"
Int = "Int"
Pointer = "Pointer"
)
// Type represents a type in the type system.
type Type struct {
Name string
Fields []*Field
Size uint8
}