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

View file

@ -18,7 +18,7 @@ func (f *Function) ExecuteLeaf(operation token.Token, register cpu.Register, ope
}
defer f.UseVariable(variable)
return f.ExecuteRegisterRegister(operation, register, variable.Register)
return f.ExecuteRegisterRegister(operation, register, variable.Value.Register)
case token.Number, token.Rune:
number, err := f.ToNumber(operand)