📚 Phase 12: Nyashスクリプトプラグインシステム設計と埋め込みVM構想
## 主な成果 - Nyashスクリプトでプラグイン作成可能という革命的発見 - C ABI制約の分析と埋め込みVMによる解決策 - MIR/VM/JIT層での箱引数サポートの詳細分析 ## ドキュメント作成 - Phase 12基本構想(README.md) - Gemini/Codex先生の技術分析 - C ABIとの整合性問題と解決策 - 埋め込みVM実装ロードマップ - 箱引数サポートの技術詳細 ## 重要な洞察 - 制約は「リンク時にC ABI必要」のみ - 埋め込みVMでMIRバイトコード実行により解決可能 - Nyashスクリプト→C ABIプラグイン変換が実現可能 Everything is Box → Everything is Plugin → Everything is Possible!
This commit is contained in:
29
plugins/nyash-python-parser-plugin/nyash_box.toml
Normal file
29
plugins/nyash-python-parser-plugin/nyash_box.toml
Normal file
@ -0,0 +1,29 @@
|
||||
[box]
|
||||
name = "Nyash Python Parser Plugin"
|
||||
version = "0.1.0"
|
||||
description = "Python -> AST/IR (Phase 10.7 C1)"
|
||||
author = "Nyash Team"
|
||||
|
||||
[provides]
|
||||
boxes = ["PythonParserBox"]
|
||||
|
||||
[PythonParserBox]
|
||||
type_id = 60
|
||||
|
||||
[PythonParserBox.lifecycle]
|
||||
birth = { id = 0 }
|
||||
fini = { id = 4294967295 }
|
||||
|
||||
[PythonParserBox.methods.parse]
|
||||
id = 1
|
||||
args = [ { name = "code", type = "string" } ]
|
||||
returns = { type = "string" } # JSON AST (暫定)
|
||||
|
||||
[implementation]
|
||||
ffi_version = 1
|
||||
thread_safe = false
|
||||
|
||||
[artifacts]
|
||||
windows = "target/x86_64-pc-windows-msvc/release/nyash_python_parser_plugin.dll"
|
||||
linux = "target/release/libnyash_python_parser_plugin.so"
|
||||
macos = "target/release/libnyash_python_parser_plugin.dylib"
|
||||
Reference in New Issue
Block a user