Added array type
This commit is contained in:
parent
bb01070950
commit
c0ffddaba8
13 changed files with 71 additions and 22 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue