Implemented Value interface
This commit is contained in:
parent
fbcadae268
commit
9cfca57111
36 changed files with 194 additions and 153 deletions
17
src/eval/Label.go
Normal file
17
src/eval/Label.go
Normal 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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue