add continous function execution and table get
This commit is contained in:
parent
1addc28463
commit
291d5724f2
4 changed files with 86 additions and 15 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue