Added array type

This commit is contained in:
Eduard Urbach 2025-02-09 20:25:37 +01:00
parent bb01070950
commit c0ffddaba8
Signed by: eduard
GPG key ID: 49226B848C78F6C8
13 changed files with 71 additions and 22 deletions

View file

@ -18,12 +18,12 @@ func (f *Function) ExpressionToMemory(node *expression.Expression, memory asm.Me
if variable != nil {
f.MemoryRegister(asm.STORE, memory, variable.Register)
f.UseVariable(variable)
return types.PointerAny, nil
return types.AnyPointer, nil
}
if function != nil {
f.MemoryLabel(asm.STORE, memory, function.UniqueName)
return types.PointerAny, nil
return types.AnyPointer, nil
}
return nil, errors.New(&errors.UnknownIdentifier{Name: name}, f.File, node.Token.Position)