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:
15
lang/src/runner/gate_c/controller.hako
Normal file
15
lang/src/runner/gate_c/controller.hako
Normal file
@ -0,0 +1,15 @@
|
||||
// Gate‑C Controller (Phase 20.26)
|
||||
// Responsibility: Provide a thin, stable entry to route MIR(JSON v0)
|
||||
// through the Ny/Core dispatcher when a wrapper route is needed.
|
||||
|
||||
include "lang/src/vm/core/dispatcher.hako"
|
||||
|
||||
static box GateCController {
|
||||
// route_json/1: String(JSON v0) -> String(last line)
|
||||
// Contract: returns a printable string (numeric or tag). No side effects.
|
||||
route_json(j) {
|
||||
// Delegate to the Core dispatcher runner
|
||||
return call("NyVmDispatcher.run/1", j)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user