Improved type system
This commit is contained in:
11
src/types/Field.go
Normal file
11
src/types/Field.go
Normal 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
|
||||
}
|
Reference in New Issue
Block a user