Implemented Value interface

This commit is contained in:
Eduard Urbach 2025-02-28 12:15:19 +01:00
parent fbcadae268
commit 9cfca57111
Signed by: eduard
GPG key ID: 49226B848C78F6C8
36 changed files with 194 additions and 153 deletions

17
src/eval/Label.go Normal file
View file

@ -0,0 +1,17 @@
package eval
import "git.urbach.dev/cli/q/src/types"
// Label is a named pointer to a code or data section.
type Label struct {
Typ types.Type
Label string
}
func (v Label) String() string {
return "Label"
}
func (v Label) Type() types.Type {
return v.Typ
}