using selfhost.vm.boxes.json_cur as MiniJson
using selfhost.shared.common.mini_vm_scan as MiniVmScan
using selfhost.shared.common.mini_vm_binop as MiniVmBinOp
using selfhost.shared.common.mini_vm_compare as MiniVmCompare
using selfhost.vm.boxes.mini_vm_prints as MiniVmPrints

static box MiniVm {
  _str_to_int(s) { return new MiniVmScan()._str_to_int(s) }
  _int_to_str(n) { return new MiniVmScan()._int_to_str(n) }
  read_digits(json, pos) { return new MiniJsonCur().read_digits_from(json, pos) }
  read_json_string(json, pos) { return new MiniJsonCur().read_quoted_from(json, pos) }
  index_of_from(hay, needle, pos) { return new MiniVmScan().index_of_from(hay, needle, pos) }
  next_non_ws(json, pos) { return new MiniJsonCur().next_non_ws(json, pos) }
}
