## 主な成果 - 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!
25 lines
724 B
Plaintext
25 lines
724 B
Plaintext
// Nyash Python Compiler entry (Phase 10.7 workbench)
|
|
// Nyash-only pipeline: Parser/Compiler are implemented in Nyash using PyRuntimeBox
|
|
// Usage:
|
|
// NYASH_PY_CODE=$'def main():\n return 0' ./target/release/nyash --backend vm tools/pyc/pyc.nyash
|
|
|
|
static box Main {
|
|
main() {
|
|
// Load modules via include (returns module boxes)
|
|
local PyIR = include "tools/pyc/PyIR.nyash"
|
|
local Parser = include "tools/pyc/PythonParserNy.nyash"
|
|
local Compiler = include "tools/pyc/PyCompiler.nyash"
|
|
|
|
local json, ir, src
|
|
|
|
// Skip echo of source to avoid plugin toString issues
|
|
|
|
json = Compiler.parseToJson()
|
|
|
|
ir = Compiler.buildIRFromParse(json)
|
|
|
|
src = Compiler.irToNyashSource(ir)
|
|
return 0
|
|
}
|
|
}
|