pxasme/token.go
2023-12-09 16:12:45 +13:00

29 lines
399 B
Go

package main
type Token interface{}
type SectionToken struct {
SectionName string
}
type GlobalToken struct {
IdentifierName string
}
type LabelToken struct {
LabelName string
IsGlobal bool
}
type MovInstrToken struct {
Args []string
}
type SyscallInstrToken struct{}
type DataVariableInstrToken struct {
VarName string
Sizeclass string // sz, u8, u16, u32, u64
Value string
}