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

View File

@ -168,16 +168,6 @@ static box ParserExprBox {
k = ctx.skip_ws(src, k)
if src.substring(k, k+1) == ")" { k = k + 1 }
node = "{\"type\":\"Method\",\"recv\":" + node + ",\"method\":\"" + mname + "\",\"args\":" + args_json2 + "}"
} else if tch == "[" {
// Index access: node[ index ] → Method(recv=node, method="get", args=[index])
k = k + 1
k = ctx.skip_ws(src, k)
local idx_json = ctx.parse_expr2(src, k)
k = ctx.gpos_get()
k = ctx.skip_ws(src, k)
if src.substring(k, k+1) == "]" { k = k + 1 }
local args_idx = "[" + idx_json + "]"
node = "{\\\"type\\\":\\\"Method\\\",\\\"recv\\\":" + node + ",\\\"method\\\":\\\"get\\\",\\\"args\\\":" + args_idx + "}"
} else {
cont2 = 0
}
@ -362,3 +352,4 @@ static box ParserExprBox {
return out + "@" + ctx.i2s(j)
}
}