Cleaned up function type

This commit is contained in:
Eduard Urbach 2024-06-29 11:49:32 +02:00
parent f870a5f1f8
commit 67b3a3d820
Signed by: eduard
GPG key ID: 49226B848C78F6C8
14 changed files with 310 additions and 294 deletions

View file

@ -34,11 +34,11 @@ func compile(functions <-chan *Function, errs <-chan error) (Result, error) {
compileFunctions(allFunctions)
for _, function := range allFunctions {
if function.Error != nil {
return result, function.Error
if function.err != nil {
return result, function.err
}
result.InstructionCount += len(function.Assembler.Instructions)
result.InstructionCount += len(function.assembler.Instructions)
}
main, exists := allFunctions["main"]