// runs bytecode struct variable *sys_run(struct context *context) { struct variable *value = (struct variable*)stack_pop(context->operand_stack); struct variable *script = (struct variable*)array_get(value->list.ordered, 1); execute_with(context, script->str, true); return NULL; }
void interpret_string(struct context *context, struct byte_array *script) { struct byte_array *program = build_string(script, NULL); execute_with(context, program, true); byte_array_del(program); }