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,20 @@
// std/operators/stringify.nyash
// StringifyOperator — 明示的な文字列化の演算子ボックス(開発用)
// 目的: 暗黙の toString に依存せず、観測可能な文字列化を提供する
static box StringifyOperator {
// apply(value) -> String
apply(value) {
// null 安全
if value == null {
return "null"
}
// stringify メソッドがあれば尊重JsonNodeInstance 等)
if value.stringify != null {
return value.stringify()
}
// それ以外は連結で安全に文字列化(プリミティブ toString 依存を避ける)
return "" + value
}
}