Added more tests

This commit is contained in:
Eduard Urbach 2025-03-14 00:08:58 +01:00
parent b7d76ff3e3
commit e367b664bb
Signed by: eduard
GPG key ID: 49226B848C78F6C8
6 changed files with 42 additions and 0 deletions

View file

@ -37,6 +37,8 @@ func (f *Function) CompileAssign(node *ast.Assign) error {
switch leftValue := leftValue.(type) {
case *eval.Register:
// TODO: Reservation needs to be canceled on defer
f.CurrentScope().Reserve(leftValue.Register)
f.Execute(operation, leftValue.Register, right)
case *eval.Memory:
// TODO: Reservation needs to be canceled on defer