json(vm): fix birth dispatch; unify constructor naming (Box.birth/N); JsonNode factories return JsonNodeInstance; quick: enable heavy JSON with probe; builder: NYASH_BUILDER_DEBUG_LIMIT guard; json_query_min(core) harness; docs/tasks updated

This commit is contained in:
nyash-codex
2025-09-27 08:45:25 +09:00
parent fcf8042b06
commit cb236b7f5a
263 changed files with 12990 additions and 272 deletions

View File

@ -0,0 +1,18 @@
// std/operators/compare.nyash
// CompareOperator — 比較演算の演算子ボックス開発用観測MVP
// 目的: 比較を明示の呼び出しとして観測可能にするMVPでは返り値は未使用
static box CompareOperator {
// apply(op, a, b) -> Bool
apply(op, a, b) {
// 実評価採用フラグON時にVMが結果採用。演算子内は再入ガードで安全
if op == "Eq" { return a == b }
if op == "Ne" { return a != b }
if op == "Lt" { return a < b }
if op == "Le" { return a <= b }
if op == "Gt" { return a > b }
if op == "Ge" { return a >= b }
// 未知のopは false安全側
return false
}
}