add continous function execution and table get

This commit is contained in:
afonya2 2025-06-08 23:06:21 +02:00
parent 1addc28463
commit 291d5724f2
Signed by: afonya
GPG key ID: EBB9C4CAFAAFB2DC
4 changed files with 86 additions and 15 deletions

View file

@ -806,7 +806,7 @@ impl Machine {
self.stack.clear();
},
_ => {
let err = create_error(&format!("Unable to call non-function type"), 0, ErrorType::MachineError, ErrorSubType::NonFunctionCall);
let err = create_error(&format!("Unable to call non-function type"), operation.pos, ErrorType::MachineError, ErrorSubType::NonFunctionCall);
print_error(&err, &self.ctx[self.call_stack[executed_stack].func].clone());
process::exit(1);
}