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:
11
apps/lib/std/operators/add.nyash
Normal file
11
apps/lib/std/operators/add.nyash
Normal file
@ -0,0 +1,11 @@
|
||||
// std/operators/add.nyash
|
||||
// AddOperator — 加算の演算子ボックス(開発用観測MVP)
|
||||
// 目的: 加算を明示呼び出しとして観測(返り値は未使用)
|
||||
|
||||
static box AddOperator {
|
||||
// apply(a, b) -> Any
|
||||
apply(a, b) {
|
||||
// 実評価(採用フラグON時にVMが結果採用。演算子内は再入ガードで安全)
|
||||
return a + b
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user