q/src/eval/Register.go

22 lines
351 B
Go

package eval
import (
"git.urbach.dev/cli/q/src/cpu"
"git.urbach.dev/cli/q/src/types"
)
// Register is a value that is stored inside a CPU register.
type Register struct {
Typ types.Type
Alive uint8
Register cpu.Register
}
func (v Register) String() string {
return "Register"
}
func (v Register) Type() types.Type {
return v.Typ
}