2025-09-01 23:44:34 +09:00
|
|
|
|
[env]
|
2025-09-15 18:44:49 +09:00
|
|
|
|
# Put environment defaults used by tools or examples if needed
|
2025-09-22 06:16:20 +09:00
|
|
|
|
# Enable using resolver by default (can be disabled with NYASH_SKIP_TOML_ENV=1)
|
|
|
|
|
|
NYASH_ENABLE_USING = "1"
|
|
|
|
|
|
# Enable dev sugar preexpand for @ local alias (line-head) during parsing
|
|
|
|
|
|
NYASH_DEV_AT_LOCAL = "1"
|
2025-09-01 23:44:34 +09:00
|
|
|
|
|
2025-09-15 18:44:49 +09:00
|
|
|
|
[using]
|
|
|
|
|
|
paths = ["apps", "lib", "."]
|
2025-09-01 23:44:34 +09:00
|
|
|
|
|
2025-11-01 02:51:49 +09:00
|
|
|
|
# Workspace module mapping (lang/ tree)
|
|
|
|
|
|
[modules.workspace]
|
|
|
|
|
|
members = [
|
|
|
|
|
|
"lang/src/compiler/hako_module.toml",
|
|
|
|
|
|
"lang/src/shared/hako_module.toml",
|
|
|
|
|
|
"lang/src/vm/hako_module.toml",
|
|
|
|
|
|
"lang/src/runtime/meta/hako_module.toml",
|
|
|
|
|
|
"lang/src/runner/hako_module.toml",
|
|
|
|
|
|
"lang/src/llvm_ir/hako_module.toml",
|
|
|
|
|
|
"lang/src/opt/hako_module.toml",
|
|
|
|
|
|
"lang/src/selfhost/hako_module.toml"
|
|
|
|
|
|
]
|
|
|
|
|
|
|
2025-09-25 10:23:14 +09:00
|
|
|
|
# Optional package-style entries (opt-in via using resolver)
|
|
|
|
|
|
[using.json_native]
|
|
|
|
|
|
path = "apps/lib/json_native/"
|
|
|
|
|
|
main = "parser/parser.nyash"
|
|
|
|
|
|
|
2025-09-25 16:03:29 +09:00
|
|
|
|
# JSON Native – String utilities as a standalone package (single-file)
|
|
|
|
|
|
[using.string_utils]
|
|
|
|
|
|
path = "apps/lib/json_native/utils/string.nyash"
|
|
|
|
|
|
|
2025-09-25 10:23:14 +09:00
|
|
|
|
[using.aliases]
|
|
|
|
|
|
# Resolve `using json as ...` to json_native when desired
|
|
|
|
|
|
json = "json_native"
|
2025-09-25 16:03:29 +09:00
|
|
|
|
StringUtils = "string_utils"
|
2025-11-01 13:28:56 +09:00
|
|
|
|
StringHelpers = "sh_core"
|
2025-09-27 08:45:25 +09:00
|
|
|
|
JsonNode = "json_node"
|
|
|
|
|
|
|
|
|
|
|
|
[using.json_node]
|
|
|
|
|
|
path = "apps/lib/json_native/core/node.nyash"
|
2025-09-25 10:23:14 +09:00
|
|
|
|
|
2025-11-01 13:28:56 +09:00
|
|
|
|
# JSON stringify (Stage-B compiler dependency)
|
|
|
|
|
|
[using.stringify]
|
|
|
|
|
|
path = "lang/src/shared/json/stringify.hako"
|
|
|
|
|
|
|
|
|
|
|
|
# String helpers (Parser dependency)
|
|
|
|
|
|
[using.sh_core]
|
|
|
|
|
|
path = "lang/src/shared/common/string_helpers.hako"
|
|
|
|
|
|
|
2025-09-15 18:44:49 +09:00
|
|
|
|
[modules]
|
|
|
|
|
|
# Map logical namespaces to Nyash source paths (consumed by runner)
|
2025-09-22 07:54:25 +09:00
|
|
|
|
selfhost.compiler.debug = "apps/selfhost/compiler/boxes/debug_box.nyash"
|
|
|
|
|
|
selfhost.compiler.parser = "apps/selfhost/compiler/boxes/parser_box.nyash"
|
|
|
|
|
|
selfhost.compiler.emitter = "apps/selfhost/compiler/boxes/emitter_box.nyash"
|
|
|
|
|
|
selfhost.compiler.mir = "apps/selfhost/compiler/boxes/mir_emitter_box.nyash"
|
|
|
|
|
|
selfhost.vm.json_cur = "apps/selfhost/vm/boxes/json_cur.nyash"
|
|
|
|
|
|
selfhost.vm.json = "apps/selfhost/common/json_adapter.nyash"
|
|
|
|
|
|
selfhost.vm.core = "apps/selfhost/vm/boxes/mini_vm_core.nyash"
|
|
|
|
|
|
selfhost.vm.scan = "apps/selfhost/common/mini_vm_scan.nyash"
|
|
|
|
|
|
selfhost.vm.binop = "apps/selfhost/common/mini_vm_binop.nyash"
|
|
|
|
|
|
selfhost.vm.compare = "apps/selfhost/common/mini_vm_compare.nyash"
|
|
|
|
|
|
selfhost.vm.prints = "apps/selfhost/vm/boxes/mini_vm_prints.nyash"
|
|
|
|
|
|
selfhost.vm.seam = "apps/selfhost/vm/boxes/seam_inspector.nyash"
|
2025-09-28 01:33:58 +09:00
|
|
|
|
selfhost.vm.mir_min = "apps/selfhost/vm/boxes/mir_vm_min.nyash"
|
2025-09-22 07:54:25 +09:00
|
|
|
|
|
2025-11-01 02:51:49 +09:00
|
|
|
|
# Lang compiler (Phase 20.33 migration)
|
|
|
|
|
|
"lang.compiler.parser.box" = "lang/src/compiler/parser/parser_box.hako"
|
|
|
|
|
|
"lang.compiler.parser.scan.parser_string_utils_box" = "lang/src/compiler/parser/scan/parser_string_utils_box.hako"
|
|
|
|
|
|
"lang.compiler.parser.scan.parser_ident_scan_box" = "lang/src/compiler/parser/scan/parser_ident_scan_box.hako"
|
|
|
|
|
|
"lang.compiler.parser.scan.parser_number_scan_box" = "lang/src/compiler/parser/scan/parser_number_scan_box.hako"
|
|
|
|
|
|
"lang.compiler.parser.scan.parser_string_scan_box" = "lang/src/compiler/parser/scan/parser_string_scan_box.hako"
|
2025-11-01 13:28:56 +09:00
|
|
|
|
"lang.compiler.parser.scan.parser_common_utils_box" = "lang/src/compiler/parser/scan/parser_common_utils_box.hako"
|
2025-11-01 02:51:49 +09:00
|
|
|
|
"lang.compiler.parser.using.using_collector_box" = "lang/src/compiler/parser/using/using_collector_box.hako"
|
|
|
|
|
|
"lang.compiler.parser.expr.parser_expr_box" = "lang/src/compiler/parser/expr/parser_expr_box.hako"
|
|
|
|
|
|
"lang.compiler.parser.expr.parser_peek_box" = "lang/src/compiler/parser/expr/parser_peek_box.hako"
|
|
|
|
|
|
"lang.compiler.parser.expr.parser_literal_box" = "lang/src/compiler/parser/expr/parser_literal_box.hako"
|
|
|
|
|
|
"lang.compiler.parser.stmt.parser_stmt_box" = "lang/src/compiler/parser/stmt/parser_stmt_box.hako"
|
|
|
|
|
|
"lang.compiler.parser.stmt.parser_control_box" = "lang/src/compiler/parser/stmt/parser_control_box.hako"
|
|
|
|
|
|
"lang.compiler.parser.stmt.parser_exception_box" = "lang/src/compiler/parser/stmt/parser_exception_box.hako"
|
|
|
|
|
|
"lang.compiler.stage1.json_program_box" = "lang/src/compiler/stage1/json_program_box.hako"
|
|
|
|
|
|
"lang.compiler.stage1.emitter_box" = "lang/src/compiler/stage1/emitter_box.hako"
|
|
|
|
|
|
"lang.compiler.pipeline_v2.flow_entry" = "lang/src/compiler/pipeline_v2/flow_entry.hako"
|
|
|
|
|
|
"lang.compiler.pipeline_v2.pipeline" = "lang/src/compiler/pipeline_v2/pipeline.hako"
|
|
|
|
|
|
"lang.compiler.pipeline_v2.using_resolver" = "lang/src/compiler/pipeline_v2/using_resolver_box.hako"
|
|
|
|
|
|
"lang.compiler.builder.ssa.local" = "lang/src/compiler/builder/ssa/local.hako"
|
|
|
|
|
|
"lang.compiler.builder.ssa.loop" = "lang/src/compiler/builder/ssa/loopssa.hako"
|
|
|
|
|
|
"lang.compiler.builder.ssa.cond_inserter" = "lang/src/compiler/builder/ssa/cond_inserter.hako"
|
|
|
|
|
|
"lang.compiler.builder.rewrite.special" = "lang/src/compiler/builder/rewrite/special.hako"
|
|
|
|
|
|
"lang.compiler.builder.rewrite.known" = "lang/src/compiler/builder/rewrite/known.hako"
|
2025-11-01 13:28:56 +09:00
|
|
|
|
"lang.compiler.emit.common.json_emit_box" = "lang/src/compiler/emit/common/json_emit_box.hako"
|
|
|
|
|
|
"lang.compiler.emit.common.mir_emit_box" = "lang/src/compiler/emit/common/mir_emit_box.hako"
|
|
|
|
|
|
"lang.compiler.emit.common.call_emit_box" = "lang/src/compiler/emit/common/call_emit_box.hako"
|
|
|
|
|
|
"lang.compiler.emit.common.newbox_emit_box" = "lang/src/compiler/emit/common/newbox_emit_box.hako"
|
|
|
|
|
|
"lang.compiler.emit.common.header_emit_box" = "lang/src/compiler/emit/common/header_emit_box.hako"
|
|
|
|
|
|
"lang.compiler.emit.common.json_emit" = "lang/src/compiler/emit/common/json_emit_box.hako"
|
|
|
|
|
|
"lang.compiler.emit.common.mir_emit" = "lang/src/compiler/emit/common/mir_emit_box.hako"
|
|
|
|
|
|
"lang.compiler.emit.common.call_emit" = "lang/src/compiler/emit/common/call_emit_box.hako"
|
|
|
|
|
|
"lang.compiler.emit.common.newbox_emit" = "lang/src/compiler/emit/common/newbox_emit_box.hako"
|
|
|
|
|
|
"lang.compiler.emit.common.header_emit" = "lang/src/compiler/emit/common/header_emit_box.hako"
|
2025-11-01 02:51:49 +09:00
|
|
|
|
|
|
|
|
|
|
# Shared helpers (selfhost shared/vm)
|
|
|
|
|
|
"selfhost.shared.json_adapter" = "lang/src/shared/json_adapter.hako"
|
|
|
|
|
|
"selfhost.shared.common.mini_vm_scan" = "lang/src/shared/common/mini_vm_scan.hako"
|
|
|
|
|
|
"selfhost.shared.common.mini_vm_binop" = "lang/src/shared/common/mini_vm_binop.hako"
|
|
|
|
|
|
"selfhost.shared.common.mini_vm_compare" = "lang/src/shared/common/mini_vm_compare.hako"
|
|
|
|
|
|
"selfhost.shared.common.string_helpers" = "lang/src/shared/common/string_helpers.hako"
|
|
|
|
|
|
"selfhost.shared.common.string_ops" = "lang/src/shared/common/string_ops.hako"
|
|
|
|
|
|
"selfhost.shared.common.box_helpers" = "lang/src/shared/common/box_helpers.hako"
|
|
|
|
|
|
"selfhost.shared.json.mir_builder_min" = "lang/src/shared/json/mir_builder_min.hako"
|
|
|
|
|
|
"selfhost.shared.json.mir_v1_adapter" = "lang/src/shared/json/mir_v1_adapter.hako"
|
|
|
|
|
|
"selfhost.shared.json.core.json_cursor" = "lang/src/shared/json/json_cursor.hako"
|
|
|
|
|
|
"selfhost.shared.json.utils.json_utils" = "lang/src/shared/json/json_utils.hako"
|
|
|
|
|
|
"selfhost.shared.mir.schema" = "lang/src/shared/mir/mir_schema_box.hako"
|
|
|
|
|
|
"selfhost.shared.mir.builder" = "lang/src/shared/mir/block_builder_box.hako"
|
|
|
|
|
|
"selfhost.shared.mir.io" = "lang/src/shared/mir/mir_io_box.hako"
|
|
|
|
|
|
"selfhost.shared.mir.json_emit" = "lang/src/shared/mir/json_emit_box.hako"
|
|
|
|
|
|
"selfhost.vm.entry" = "lang/src/vm/boxes/mini_vm_entry.hako"
|
|
|
|
|
|
"selfhost.vm.mir_min" = "lang/src/vm/boxes/mir_vm_min.hako"
|
|
|
|
|
|
"selfhost.vm.core" = "lang/src/vm/boxes/mini_vm_core.hako"
|
|
|
|
|
|
|
2025-09-22 07:54:25 +09:00
|
|
|
|
# Temporary alias keys (migration aid; keys kept stable)
|
|
|
|
|
|
selfhost.common.json = "apps/selfhost/common/json_adapter.nyash"
|
|
|
|
|
|
selfhost.common.scan = "apps/selfhost/common/mini_vm_scan.nyash"
|
|
|
|
|
|
selfhost.common.binop = "apps/selfhost/common/mini_vm_binop.nyash"
|
|
|
|
|
|
selfhost.common.compare = "apps/selfhost/common/mini_vm_compare.nyash"
|
2025-09-01 23:44:34 +09:00
|
|
|
|
|
2025-09-17 22:01:29 +09:00
|
|
|
|
# v2 Plugin libraries (loader reads these for TypeBox ABI)
|
|
|
|
|
|
[libraries]
|
|
|
|
|
|
[libraries."libnyash_filebox_plugin.so"]
|
|
|
|
|
|
boxes = ["FileBox"]
|
2025-09-24 09:30:42 +09:00
|
|
|
|
path = "plugins/nyash-filebox-plugin/libnyash_filebox_plugin.so"
|
2025-09-17 22:01:29 +09:00
|
|
|
|
|
|
|
|
|
|
[libraries."libnyash_filebox_plugin.so".FileBox]
|
|
|
|
|
|
type_id = 6
|
|
|
|
|
|
abi_version = 1
|
|
|
|
|
|
singleton = false
|
|
|
|
|
|
|
|
|
|
|
|
[libraries."libnyash_filebox_plugin.so".FileBox.methods]
|
|
|
|
|
|
birth = { method_id = 0 }
|
2025-09-24 14:13:15 +09:00
|
|
|
|
open = { method_id = 4 }
|
|
|
|
|
|
read = { method_id = 5 }
|
|
|
|
|
|
write = { method_id = 6 }
|
|
|
|
|
|
close = { method_id = 7 }
|
|
|
|
|
|
exists = { method_id = 8 }
|
|
|
|
|
|
copyFrom = { method_id = 9 }
|
|
|
|
|
|
cloneSelf = { method_id = 10 }
|
2025-09-17 22:01:29 +09:00
|
|
|
|
fini = { method_id = 4294967295 }
|
|
|
|
|
|
|
|
|
|
|
|
[libraries."libnyash_path_plugin.so"]
|
|
|
|
|
|
boxes = ["PathBox"]
|
2025-09-24 09:30:42 +09:00
|
|
|
|
path = "plugins/nyash-path-plugin/libnyash_path_plugin.so"
|
2025-09-17 22:01:29 +09:00
|
|
|
|
|
|
|
|
|
|
[libraries."libnyash_path_plugin.so".PathBox]
|
|
|
|
|
|
type_id = 55
|
|
|
|
|
|
abi_version = 1
|
|
|
|
|
|
singleton = false
|
|
|
|
|
|
|
|
|
|
|
|
[libraries."libnyash_path_plugin.so".PathBox.methods]
|
|
|
|
|
|
birth = { method_id = 0 }
|
2025-09-24 14:13:15 +09:00
|
|
|
|
join = { method_id = 4 }
|
|
|
|
|
|
dirname = { method_id = 5 }
|
|
|
|
|
|
basename = { method_id = 6 }
|
|
|
|
|
|
extname = { method_id = 7 }
|
|
|
|
|
|
isAbs = { method_id = 8 }
|
|
|
|
|
|
normalize = { method_id = 9 }
|
2025-09-17 22:01:29 +09:00
|
|
|
|
fini = { method_id = 4294967295 }
|
|
|
|
|
|
|
|
|
|
|
|
[libraries."libnyash_math_plugin.so"]
|
|
|
|
|
|
boxes = ["MathBox", "TimeBox"]
|
2025-09-24 09:30:42 +09:00
|
|
|
|
path = "plugins/nyash-math-plugin/libnyash_math_plugin.so"
|
2025-09-17 22:01:29 +09:00
|
|
|
|
|
|
|
|
|
|
[libraries."libnyash_math_plugin.so".MathBox]
|
|
|
|
|
|
type_id = 50
|
|
|
|
|
|
abi_version = 1
|
|
|
|
|
|
singleton = false
|
|
|
|
|
|
|
|
|
|
|
|
[libraries."libnyash_math_plugin.so".MathBox.methods]
|
|
|
|
|
|
birth = { method_id = 0 }
|
2025-09-24 14:13:15 +09:00
|
|
|
|
sqrt = { method_id = 4 }
|
|
|
|
|
|
sin = { method_id = 5 }
|
|
|
|
|
|
cos = { method_id = 6 }
|
|
|
|
|
|
round = { method_id = 7 }
|
2025-09-17 22:01:29 +09:00
|
|
|
|
fini = { method_id = 4294967295 }
|
|
|
|
|
|
|
|
|
|
|
|
[libraries."libnyash_math_plugin.so".TimeBox]
|
|
|
|
|
|
type_id = 51
|
|
|
|
|
|
abi_version = 1
|
|
|
|
|
|
singleton = false
|
|
|
|
|
|
|
|
|
|
|
|
[libraries."libnyash_math_plugin.so".TimeBox.methods]
|
|
|
|
|
|
birth = { method_id = 0 }
|
2025-09-24 14:13:15 +09:00
|
|
|
|
now = { method_id = 4 }
|
2025-09-17 22:01:29 +09:00
|
|
|
|
fini = { method_id = 4294967295 }
|
|
|
|
|
|
|
|
|
|
|
|
[libraries."libnyash_regex_plugin.so"]
|
|
|
|
|
|
boxes = ["RegexBox"]
|
2025-09-24 09:30:42 +09:00
|
|
|
|
path = "plugins/nyash-regex-plugin/libnyash_regex_plugin.so"
|
2025-09-17 22:01:29 +09:00
|
|
|
|
|
|
|
|
|
|
[libraries."libnyash_regex_plugin.so".RegexBox]
|
|
|
|
|
|
type_id = 52
|
|
|
|
|
|
abi_version = 1
|
|
|
|
|
|
singleton = false
|
|
|
|
|
|
|
|
|
|
|
|
[libraries."libnyash_regex_plugin.so".RegexBox.methods]
|
|
|
|
|
|
birth = { method_id = 0 }
|
2025-09-24 14:13:15 +09:00
|
|
|
|
compile = { method_id = 4 }
|
|
|
|
|
|
isMatch = { method_id = 5 }
|
|
|
|
|
|
find = { method_id = 6 }
|
|
|
|
|
|
replaceAll = { method_id = 7 }
|
|
|
|
|
|
split = { method_id = 8 }
|
2025-09-17 22:01:29 +09:00
|
|
|
|
fini = { method_id = 4294967295 }
|
|
|
|
|
|
|
|
|
|
|
|
[libraries."libnyash_net_plugin.so"]
|
|
|
|
|
|
boxes = ["ClientBox", "ResponseBox", "RequestBox", "ServerBox", "SockServerBox", "SockClientBox", "SockConnBox"]
|
2025-09-24 09:30:42 +09:00
|
|
|
|
path = "plugins/nyash-net-plugin/libnyash_net_plugin.so"
|
2025-09-17 22:01:29 +09:00
|
|
|
|
|
|
|
|
|
|
[libraries."libnyash_net_plugin.so".ClientBox]
|
|
|
|
|
|
type_id = 23
|
|
|
|
|
|
abi_version = 1
|
|
|
|
|
|
singleton = false
|
|
|
|
|
|
|
|
|
|
|
|
[libraries."libnyash_net_plugin.so".ClientBox.methods]
|
|
|
|
|
|
birth = { method_id = 0 }
|
2025-09-24 14:13:15 +09:00
|
|
|
|
get = { method_id = 4 }
|
|
|
|
|
|
post = { method_id = 5 }
|
2025-09-17 22:01:29 +09:00
|
|
|
|
fini = { method_id = 4294967295 }
|
|
|
|
|
|
|
|
|
|
|
|
[libraries."libnyash_net_plugin.so".ResponseBox]
|
|
|
|
|
|
type_id = 22
|
|
|
|
|
|
abi_version = 1
|
|
|
|
|
|
singleton = false
|
|
|
|
|
|
|
|
|
|
|
|
[libraries."libnyash_net_plugin.so".ResponseBox.methods]
|
|
|
|
|
|
birth = { method_id = 0 }
|
2025-09-24 14:13:15 +09:00
|
|
|
|
setStatus = { method_id = 4 }
|
|
|
|
|
|
setHeader = { method_id = 5 }
|
|
|
|
|
|
write = { method_id = 6 }
|
|
|
|
|
|
readBody = { method_id = 7 }
|
|
|
|
|
|
getStatus = { method_id = 8 }
|
|
|
|
|
|
getHeader = { method_id = 9 }
|
2025-09-17 22:01:29 +09:00
|
|
|
|
fini = { method_id = 4294967295 }
|
|
|
|
|
|
|
|
|
|
|
|
[libraries."libnyash_net_plugin.so".RequestBox]
|
|
|
|
|
|
type_id = 21
|
|
|
|
|
|
abi_version = 1
|
|
|
|
|
|
singleton = false
|
|
|
|
|
|
|
|
|
|
|
|
[libraries."libnyash_net_plugin.so".RequestBox.methods]
|
|
|
|
|
|
birth = { method_id = 0 }
|
2025-09-24 14:13:15 +09:00
|
|
|
|
path = { method_id = 4 }
|
|
|
|
|
|
readBody = { method_id = 5 }
|
|
|
|
|
|
respond = { method_id = 6 }
|
2025-09-17 22:01:29 +09:00
|
|
|
|
fini = { method_id = 4294967295 }
|
|
|
|
|
|
|
|
|
|
|
|
[libraries."libnyash_net_plugin.so".ServerBox]
|
|
|
|
|
|
type_id = 20
|
|
|
|
|
|
abi_version = 1
|
|
|
|
|
|
singleton = false
|
|
|
|
|
|
|
|
|
|
|
|
[libraries."libnyash_net_plugin.so".ServerBox.methods]
|
|
|
|
|
|
birth = { method_id = 0 }
|
2025-09-24 14:13:15 +09:00
|
|
|
|
start = { method_id = 4 }
|
|
|
|
|
|
stop = { method_id = 5 }
|
|
|
|
|
|
accept = { method_id = 6 }
|
2025-09-17 22:01:29 +09:00
|
|
|
|
fini = { method_id = 4294967295 }
|
|
|
|
|
|
|
|
|
|
|
|
[libraries."libnyash_net_plugin.so".SockServerBox]
|
|
|
|
|
|
type_id = 30
|
|
|
|
|
|
abi_version = 1
|
|
|
|
|
|
singleton = false
|
|
|
|
|
|
|
|
|
|
|
|
[libraries."libnyash_net_plugin.so".SockServerBox.methods]
|
|
|
|
|
|
birth = { method_id = 0 }
|
2025-09-24 14:13:15 +09:00
|
|
|
|
start = { method_id = 4 }
|
|
|
|
|
|
stop = { method_id = 5 }
|
|
|
|
|
|
accept = { method_id = 6 }
|
|
|
|
|
|
acceptTimeout = { method_id = 7 }
|
2025-09-17 22:01:29 +09:00
|
|
|
|
fini = { method_id = 4294967295 }
|
|
|
|
|
|
|
|
|
|
|
|
[libraries."libnyash_net_plugin.so".SockClientBox]
|
|
|
|
|
|
type_id = 32
|
|
|
|
|
|
abi_version = 1
|
|
|
|
|
|
singleton = false
|
|
|
|
|
|
|
|
|
|
|
|
[libraries."libnyash_net_plugin.so".SockClientBox.methods]
|
|
|
|
|
|
birth = { method_id = 0 }
|
2025-09-24 14:13:15 +09:00
|
|
|
|
connect = { method_id = 4 }
|
2025-09-17 22:01:29 +09:00
|
|
|
|
fini = { method_id = 4294967295 }
|
|
|
|
|
|
|
|
|
|
|
|
[libraries."libnyash_net_plugin.so".SockConnBox]
|
|
|
|
|
|
type_id = 31
|
|
|
|
|
|
abi_version = 1
|
|
|
|
|
|
singleton = false
|
|
|
|
|
|
|
|
|
|
|
|
[libraries."libnyash_net_plugin.so".SockConnBox.methods]
|
|
|
|
|
|
birth = { method_id = 0 }
|
2025-09-24 14:13:15 +09:00
|
|
|
|
send = { method_id = 4 }
|
|
|
|
|
|
recv = { method_id = 5 }
|
|
|
|
|
|
close = { method_id = 6 }
|
|
|
|
|
|
recvTimeout = { method_id = 7 }
|
2025-09-17 22:01:29 +09:00
|
|
|
|
fini = { method_id = 4294967295 }
|
|
|
|
|
|
|
2025-09-17 22:49:53 +09:00
|
|
|
|
[libraries."libnyash_encoding_plugin.so"]
|
|
|
|
|
|
boxes = ["EncodingBox"]
|
2025-09-24 09:30:42 +09:00
|
|
|
|
path = "plugins/nyash-encoding-plugin/libnyash_encoding_plugin.so"
|
2025-09-17 22:49:53 +09:00
|
|
|
|
|
|
|
|
|
|
[libraries."libnyash_encoding_plugin.so".EncodingBox]
|
|
|
|
|
|
type_id = 53
|
|
|
|
|
|
abi_version = 1
|
|
|
|
|
|
singleton = false
|
|
|
|
|
|
|
|
|
|
|
|
[libraries."libnyash_encoding_plugin.so".EncodingBox.methods]
|
|
|
|
|
|
birth = { method_id = 0 }
|
2025-09-24 14:13:15 +09:00
|
|
|
|
toUtf8Bytes = { method_id = 4 }
|
|
|
|
|
|
fromUtf8Bytes = { method_id = 5 }
|
|
|
|
|
|
base64Encode = { method_id = 6 }
|
|
|
|
|
|
base64Decode = { method_id = 7 }
|
|
|
|
|
|
hexEncode = { method_id = 8 }
|
|
|
|
|
|
hexDecode = { method_id = 9 }
|
2025-09-17 22:49:53 +09:00
|
|
|
|
fini = { method_id = 4294967295 }
|
|
|
|
|
|
|
2025-09-26 00:27:02 +09:00
|
|
|
|
# Provider Verify — minimal required methods (dev warn by default)
|
|
|
|
|
|
[verify.required_methods]
|
|
|
|
|
|
# Note: Dynamic plugins may not be present in dev; preflight runs in warn mode.
|
|
|
|
|
|
StringBox = ["length", "concat"]
|
|
|
|
|
|
ArrayBox = ["len", "push", "get"]
|
|
|
|
|
|
MapBox = ["has", "get", "set"]
|
|
|
|
|
|
ConsoleBox = ["print"]
|
|
|
|
|
|
|
2025-09-22 06:16:20 +09:00
|
|
|
|
[libraries."libnyash_json_plugin.so"]
|
|
|
|
|
|
boxes = ["JsonDocBox", "JsonNodeBox"]
|
2025-09-24 09:30:42 +09:00
|
|
|
|
path = "plugins/nyash-json-plugin/libnyash_json_plugin.so"
|
2025-09-22 06:16:20 +09:00
|
|
|
|
|
|
|
|
|
|
[libraries."libnyash_json_plugin.so".JsonDocBox]
|
|
|
|
|
|
type_id = 70
|
|
|
|
|
|
abi_version = 1
|
|
|
|
|
|
singleton = false
|
|
|
|
|
|
|
|
|
|
|
|
[libraries."libnyash_json_plugin.so".JsonDocBox.methods]
|
|
|
|
|
|
birth = { method_id = 0 }
|
2025-09-24 14:13:15 +09:00
|
|
|
|
parse = { method_id = 4 }
|
|
|
|
|
|
root = { method_id = 5 }
|
|
|
|
|
|
error = { method_id = 6 }
|
2025-09-22 06:16:20 +09:00
|
|
|
|
fini = { method_id = 4294967295 }
|
|
|
|
|
|
|
|
|
|
|
|
[libraries."libnyash_json_plugin.so".JsonNodeBox]
|
|
|
|
|
|
type_id = 71
|
|
|
|
|
|
abi_version = 1
|
|
|
|
|
|
singleton = false
|
|
|
|
|
|
|
|
|
|
|
|
[libraries."libnyash_json_plugin.so".JsonNodeBox.methods]
|
|
|
|
|
|
birth = { method_id = 0 }
|
2025-09-24 14:13:15 +09:00
|
|
|
|
kind = { method_id = 4 }
|
|
|
|
|
|
get = { method_id = 5 }
|
|
|
|
|
|
size = { method_id = 6 }
|
|
|
|
|
|
at = { method_id = 7 }
|
|
|
|
|
|
str = { method_id = 8 }
|
|
|
|
|
|
int = { method_id = 9 }
|
|
|
|
|
|
bool = { method_id = 10 }
|
2025-09-22 06:16:20 +09:00
|
|
|
|
fini = { method_id = 4294967295 }
|
|
|
|
|
|
|
2025-09-17 22:49:53 +09:00
|
|
|
|
[libraries."libnyash_toml_plugin.so"]
|
|
|
|
|
|
boxes = ["TOMLBox"]
|
2025-09-24 09:30:42 +09:00
|
|
|
|
path = "plugins/nyash-toml-plugin/libnyash_toml_plugin.so"
|
2025-09-17 22:49:53 +09:00
|
|
|
|
|
|
|
|
|
|
[libraries."libnyash_toml_plugin.so".TOMLBox]
|
|
|
|
|
|
type_id = 54
|
|
|
|
|
|
abi_version = 1
|
|
|
|
|
|
singleton = false
|
|
|
|
|
|
|
|
|
|
|
|
[libraries."libnyash_toml_plugin.so".TOMLBox.methods]
|
|
|
|
|
|
birth = { method_id = 0 }
|
2025-09-24 14:13:15 +09:00
|
|
|
|
parse = { method_id = 4 }
|
|
|
|
|
|
get = { method_id = 5 }
|
|
|
|
|
|
toJson = { method_id = 6 }
|
2025-09-17 22:49:53 +09:00
|
|
|
|
fini = { method_id = 4294967295 }
|
|
|
|
|
|
|
2025-09-17 22:01:29 +09:00
|
|
|
|
# Python (v2 TypeBox) plugins
|
|
|
|
|
|
[libraries."libnyash_python_plugin.so"]
|
|
|
|
|
|
boxes = ["PyRuntimeBox", "PyObjectBox"]
|
2025-09-24 09:30:42 +09:00
|
|
|
|
path = "plugins/nyash-python-plugin/libnyash_python_plugin.so"
|
2025-09-17 22:01:29 +09:00
|
|
|
|
|
|
|
|
|
|
[libraries."libnyash_python_plugin.so".PyRuntimeBox]
|
|
|
|
|
|
type_id = 40
|
|
|
|
|
|
abi_version = 1
|
|
|
|
|
|
singleton = false
|
|
|
|
|
|
|
|
|
|
|
|
[libraries."libnyash_python_plugin.so".PyRuntimeBox.methods]
|
|
|
|
|
|
birth = { method_id = 0 }
|
2025-09-24 14:13:15 +09:00
|
|
|
|
eval = { method_id = 4 }
|
|
|
|
|
|
import = { method_id = 5 }
|
2025-09-17 22:01:29 +09:00
|
|
|
|
evalR = { method_id = 11 }
|
|
|
|
|
|
importR = { method_id = 12 }
|
|
|
|
|
|
fini = { method_id = 4294967295 }
|
|
|
|
|
|
|
|
|
|
|
|
[libraries."libnyash_python_plugin.so".PyObjectBox]
|
|
|
|
|
|
type_id = 41
|
|
|
|
|
|
abi_version = 1
|
|
|
|
|
|
singleton = false
|
|
|
|
|
|
|
|
|
|
|
|
[libraries."libnyash_python_plugin.so".PyObjectBox.methods]
|
|
|
|
|
|
birth = { method_id = 0 }
|
2025-09-24 14:13:15 +09:00
|
|
|
|
getattr = { method_id = 4 }
|
|
|
|
|
|
call = { method_id = 5 }
|
|
|
|
|
|
str = { method_id = 6 }
|
2025-09-17 22:01:29 +09:00
|
|
|
|
callKw = { method_id = 5 }
|
|
|
|
|
|
getattrR = { method_id = 11 }
|
|
|
|
|
|
callR = { method_id = 12 }
|
|
|
|
|
|
callKwR = { method_id = 15 }
|
|
|
|
|
|
fini = { method_id = 4294967295 }
|
|
|
|
|
|
|
|
|
|
|
|
[libraries."libnyash_python_parser_plugin.so"]
|
|
|
|
|
|
boxes = ["PythonParserBox"]
|
2025-09-24 09:30:42 +09:00
|
|
|
|
path = "plugins/nyash-python-parser-plugin/libnyash_python_parser_plugin.so"
|
2025-09-17 22:01:29 +09:00
|
|
|
|
|
|
|
|
|
|
[libraries."libnyash_python_parser_plugin.so".PythonParserBox]
|
|
|
|
|
|
type_id = 60
|
|
|
|
|
|
abi_version = 1
|
|
|
|
|
|
singleton = false
|
|
|
|
|
|
|
|
|
|
|
|
[libraries."libnyash_python_parser_plugin.so".PythonParserBox.methods]
|
|
|
|
|
|
birth = { method_id = 0 }
|
2025-09-24 14:13:15 +09:00
|
|
|
|
parse = { method_id = 4 }
|
2025-09-17 22:01:29 +09:00
|
|
|
|
fini = { method_id = 4294967295 }
|
|
|
|
|
|
|
|
|
|
|
|
[libraries."libnyash_python_compiler_plugin.so"]
|
|
|
|
|
|
boxes = ["PythonCompilerBox"]
|
2025-09-24 09:30:42 +09:00
|
|
|
|
path = "plugins/nyash-python-compiler-plugin/libnyash_python_compiler_plugin.so"
|
2025-09-17 22:01:29 +09:00
|
|
|
|
|
|
|
|
|
|
[libraries."libnyash_python_compiler_plugin.so".PythonCompilerBox]
|
|
|
|
|
|
type_id = 61
|
|
|
|
|
|
abi_version = 1
|
|
|
|
|
|
singleton = false
|
|
|
|
|
|
|
|
|
|
|
|
[libraries."libnyash_python_compiler_plugin.so".PythonCompilerBox.methods]
|
|
|
|
|
|
birth = { method_id = 0 }
|
2025-09-24 14:13:15 +09:00
|
|
|
|
compile = { method_id = 4 }
|
2025-09-17 22:01:29 +09:00
|
|
|
|
fini = { method_id = 4294967295 }
|
2025-09-24 05:57:08 +09:00
|
|
|
|
# StringBox Plugin (Core Box replacement)
|
|
|
|
|
|
[libraries."libnyash_string_plugin.so"]
|
|
|
|
|
|
boxes = ["StringBox"]
|
2025-09-24 09:30:42 +09:00
|
|
|
|
path = "plugins/nyash-string-plugin/libnyash_string_plugin.so"
|
2025-09-24 05:57:08 +09:00
|
|
|
|
|
|
|
|
|
|
[libraries."libnyash_string_plugin.so".StringBox]
|
|
|
|
|
|
type_id = 10
|
|
|
|
|
|
abi_version = 1
|
|
|
|
|
|
singleton = false
|
|
|
|
|
|
|
|
|
|
|
|
[libraries."libnyash_string_plugin.so".StringBox.methods]
|
|
|
|
|
|
birth = { method_id = 0 }
|
2025-09-24 14:13:15 +09:00
|
|
|
|
length = { method_id = 1 }
|
|
|
|
|
|
isEmpty = { method_id = 2 }
|
|
|
|
|
|
charCodeAt = { method_id = 3 }
|
|
|
|
|
|
concat = { method_id = 4 }
|
|
|
|
|
|
fromUtf8 = { method_id = 5 }
|
|
|
|
|
|
toUtf8 = { method_id = 6 }
|
|
|
|
|
|
# Note: Below methods are not implemented yet
|
|
|
|
|
|
# substring = { method_id = 8 }
|
|
|
|
|
|
# indexOf = { method_id = 10 }
|
|
|
|
|
|
# lastIndexOf = { method_id = 11 }
|
|
|
|
|
|
# replace = { method_id = 12 }
|
|
|
|
|
|
# split = { method_id = 13 }
|
|
|
|
|
|
# trim = { method_id = 14 }
|
|
|
|
|
|
# toUpper = { method_id = 15 }
|
|
|
|
|
|
# toLower = { method_id = 16 }
|
2025-09-24 05:57:08 +09:00
|
|
|
|
fini = { method_id = 4294967295 }
|
|
|
|
|
|
|
|
|
|
|
|
# IntegerBox Plugin (Core Box replacement)
|
|
|
|
|
|
[libraries."libnyash_integer_plugin.so"]
|
|
|
|
|
|
boxes = ["IntegerBox"]
|
2025-09-24 09:30:42 +09:00
|
|
|
|
path = "plugins/nyash-integer-plugin/libnyash_integer_plugin.so"
|
2025-09-24 05:57:08 +09:00
|
|
|
|
|
|
|
|
|
|
[libraries."libnyash_integer_plugin.so".IntegerBox]
|
|
|
|
|
|
type_id = 12
|
|
|
|
|
|
abi_version = 1
|
|
|
|
|
|
singleton = false
|
|
|
|
|
|
|
|
|
|
|
|
[libraries."libnyash_integer_plugin.so".IntegerBox.methods]
|
|
|
|
|
|
birth = { method_id = 0 }
|
|
|
|
|
|
get = { method_id = 1 }
|
|
|
|
|
|
set = { method_id = 2 }
|
2025-09-25 10:23:14 +09:00
|
|
|
|
fini = { method_id = 4294967295 }
|