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:
@ -3,6 +3,7 @@
|
||||
|
||||
using "lang/src/compiler/pipeline_v2/emit_call_box.hako" as EmitCallBox
|
||||
using "lang/src/compiler/pipeline_v2/local_ssa_box.hako" as LocalSSABox
|
||||
using "lang/src/shared/json/mir_v1_meta_inject_box.hako" as MirV1MetaInjectBox
|
||||
|
||||
static box PipelineEmitBox {
|
||||
// Emit Call(name, int-args) → JSON v0, wrapped with LocalSSA ensures
|
||||
@ -10,6 +11,14 @@ static box PipelineEmitBox {
|
||||
local j = EmitCallBox.emit_call_int_args(name, args)
|
||||
return LocalSSABox.ensure_calls(LocalSSABox.ensure_cond(j))
|
||||
}
|
||||
|
||||
// Emit Call(name, int-args) → JSON v1 with metadata.extern_c (if provided)
|
||||
// externs_json: JSON array text like
|
||||
// [{"func":"Name/Arity","symbol":"c_symbol"}, ...]
|
||||
emit_call_int_args_v1_with_meta(name, args, externs_json) {
|
||||
local jv0 = me.emit_call_int_args_v0(name, args)
|
||||
return MirV1MetaInjectBox.inject_meta_externs(jv0, externs_json)
|
||||
}
|
||||
}
|
||||
|
||||
static box PipelineEmitMain { main(args) { return 0 } }
|
||||
|
||||
Reference in New Issue
Block a user