phase: 20.49 COMPLETE; 20.50 Flow+String minimal reps; 20.51 selfhost v0/v1 minimal (Option A/B); hv1-inline binop/unop/copy; docs + run_all + CURRENT_TASK -> 21.0

This commit is contained in:
nyash-codex
2025-11-06 15:41:52 +09:00
parent 2dc370223d
commit 77d4fd72b3
1658 changed files with 6288 additions and 2612 deletions

View File

@ -29,7 +29,7 @@ Nyashスクリプトプラグインは、**最もNyashらしいプラグイン
### 1. シンプルなユーティリティBox
```nyash
# math_utils.nyash - 数学ユーティリティプラグイン
# math_utils.hako - 数学ユーティリティプラグイン
box MathUtils {
init { }
@ -66,7 +66,7 @@ box MathUtils {
### 2. 他のプラグインと組み合わせる例
```nyash
# data_processor.nyash - データ処理プラグイン
# data_processor.hako - データ処理プラグイン
box DataProcessor {
init { file, math, cache }
@ -109,7 +109,7 @@ box DataProcessor {
### 3. 高度なプラグイン - P2Pード拡張
```nyash
# mesh_node.nyash - P2Pメッシュネットワークード
# mesh_node.hako - P2Pメッシュネットワークード
box MeshNode from P2PBox {
init { routing, peers, messageHandlers }
@ -181,8 +181,8 @@ box MeshNode from P2PBox {
### 1. ローカルファイルとして
```nyash
# main.nyash
include "plugins/math_utils.nyash"
# main.hako
include "plugins/math_utils.hako"
local utils = new MathUtils()
print(utils.factorial(5)) # 120
@ -209,7 +209,7 @@ local utils = new MathUtils()
```nyash
# 実行時にプラグインをロード
local pluginCode = new FileBox().read("plugin.nyash")
local pluginCode = new FileBox().read("plugin.hako")
eval(pluginCode) # プラグインが利用可能に
local processor = new DataProcessor()
@ -270,7 +270,7 @@ box SafeCalculator {
| パフォーマンス | 中速 | 最速 | 高速 |
| 開発効率 | 最高 | 中 | 中 |
| デバッグ | 簡単 | 難しい | 中程度 |
| 配布 | .nyashファイル | .so/.dll | 任意 |
| 配布 | .hakoファイル | .so/.dll | 任意 |
## 📚 まとめ