restore(lang): full lang tree from ff3ef452 (306 files) — compiler, vm, shared, runner, c-abi, etc.\n\n- Restores lang/ directory (files≈306, dirs≈64) as per historical branch with selfhost sources\n- Keeps our recent parser index changes in compiler/* (merged clean by checkout)\n- Unblocks selfhost development and documentation references

This commit is contained in:
nyash-codex
2025-10-31 20:45:46 +09:00
parent dbc285f2b1
commit e5f697eb22
244 changed files with 16915 additions and 47 deletions

12
lang/src/vm/mini_vm.hako Normal file
View File

@ -0,0 +1,12 @@
// Thin entry: delegate to core MiniVm
// Using is pre-inlined by runner; keep entry minimal for maintainability.
using "lang/src/vm/mini_vm_lib.hako" as MiniVm
static box Main {
main(args) {
@json = "{\"kind\":\"Program\",\"statements\":[{\"kind\":\"Print\",\"expression\":{\"kind\":\"Literal\",\"value\":{\"type\":\"int\",\"value\":42}}}]}"
if args { if args.size() > 0 { @s = args.get(0) if s { json = s } } }
return new MiniVm().run(json)
}
}
// migrated from .nyash to .hako (branding)