Files
hakorune/apps/selfhost/vm/collect_mixed_using_smoke.nyash
Selfhosting Dev 43e8dcbaf0 fix: correct using paths in selfhost VM apps for compatibility
- Update mini_vm_core.nyash: fix using paths to point to correct locations
  - selfhost.vm.json -> selfhost.vm.boxes.json_cur
  - selfhost.vm.scan -> selfhost.common.mini_vm_scan
  - selfhost.vm.binop -> selfhost.common.mini_vm_binop
  - selfhost.vm.compare -> selfhost.common.mini_vm_compare
- Update smoke test apps to use correct mini_vm_core path
- Addresses using system parser errors at line 1885 and brace delta issues

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-23 00:07:09 +09:00

12 lines
1.2 KiB
Plaintext

using selfhost.vm.boxes.mini_vm_core as MiniVm
using selfhost.vm.boxes.mini_vm_prints as MiniVmPrints
static box Main {
main(args) {
local json = "{\"kind\":\"Program\",\"statements\":[{\"kind\":\"Print\",\"expression\":{\"kind\":\"Literal\",\"value\":{\"type\":\"string\",\"value\":\"A\"}}},{\"kind\":\"Print\",\"expression\":{\"kind\":\"FunctionCall\",\"name\":\"echo\",\"arguments\":[{\"kind\":\"Literal\",\"value\":{\"type\":\"string\",\"value\":\"B\"}}]}},{\"kind\":\"Print\",\"expression\":{\"kind\":\"FunctionCall\",\"name\":\"itoa\",\"arguments\":[{\"kind\":\"Literal\",\"value\":{\"type\":\"int\",\"value\":7}}]}},{\"kind\":\"Print\",\"expression\":{\"kind\":\"Compare\",\"operation\":\"<\",\"lhs\":{\"kind\":\"Literal\",\"value\":{\"type\":\"int\",\"value\":1}},\"rhs\":{\"kind\":\"Literal\",\"value\":{\"type\":\"int\",\"value\":2}}}},{\"kind\":\"Print\",\"expression\":{\"kind\":\"BinaryOp\",\"operator\":\"+\",\"left\":{\"kind\":\"Literal\",\"value\":{\"type\":\"int\",\"value\":3}},\"right\":{\"kind\":\"Literal\",\"value\":{\"type\":\"int\",\"value\":4}}}},{\"kind\":\"Print\",\"expression\":{\"kind\":\"Literal\",\"value\":{\"type\":\"int\",\"value\":5}}}]}"
new MiniVmPrints().print_prints_in_slice(json, 0, json.length())
return 0
}
}