Simplified variable usage

This commit is contained in:
Eduard Urbach 2024-07-22 19:10:14 +02:00
parent 6276562777
commit c3234361f7
Signed by: eduard
GPG key ID: 49226B848C78F6C8
8 changed files with 45 additions and 44 deletions

View file

@ -17,7 +17,7 @@ func (f *Function) ExecuteLeaf(operation token.Token, register cpu.Register, ope
return errors.New(&errors.UnknownIdentifier{Name: name}, f.File, operand.Position)
}
defer f.useVariable(variable)
defer f.UseVariable(variable)
return f.ExecuteRegisterRegister(operation, register, variable.Register)
case token.Number, token.Rune: