Files
hakorune/tests/development/test_pack_other_builtin.nyash
Moe Charm ef7a0de3b0 feat: Prepare for code modularization and cleanup
- Archive old documentation and test files to `docs/archive/` and `local_tests/`.
- Remove various temporary and old files from the project root.
- Add `nekocode-rust` analysis tool and its output files (`nekocode/`, `.nekocode_sessions/`, `analysis.json`).
- Minor updates to `apps/chip8_nyash/chip8_emulator.nyash` and `local_tests` files.

This commit cleans up the repository and sets the stage for further code modularization efforts, particularly in the `src/interpreter` and `src/parser` modules, based on recent analysis.
2025-08-16 01:30:39 +09:00

34 lines
834 B
Plaintext

// 🔍 他のビルトインBoxでpack構文テスト
// P2PBoxでpack構文テスト
box MyP2PBox from P2PBox {
init { nodeHistory }
pack(nodeId, world) {
from P2PBox.pack(nodeId, world)
me.nodeHistory = new ArrayBox()
print("✅ MyP2PBox pack成功")
}
getHistory() {
return me.nodeHistory
}
}
static box Main {
init { console }
main() {
me.console = new ConsoleBox()
me.console.log("🔍 P2PBox pack構文テスト")
// P2PBox継承でpack使用
local p2pNode = new MyP2PBox("node1", "tcp")
me.console.log("✅ MyP2PBox作成成功")
local history = p2pNode.getHistory()
me.console.log("📚 履歴作成確認")
return "P2PBox pack構文テスト完了"
}
}