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

11
src/types/Field.go Normal file
View File

@ -0,0 +1,11 @@
package types
import "git.akyoto.dev/cli/q/src/token"
// Field is a field in a data structure.
type Field struct {
Type *Type
Name string
Position token.Position
Offset uint8
}