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

@ -252,22 +252,22 @@ peek ast {
### ステップ1: 標準コードを書く
```bash
# 通常のNyashで開発
vim src/feature.nyash
vim src/feature.hako
```
### ステップ2: 段階的圧縮
```bash
# L1: 糖衣構文適用
nyashfmt --sugar src/feature.nyash > feature.sugar.nyash
nyashfmt --sugar src/feature.hako > feature.sugar.hako
# L2: ANCP変換
nyash2ancp feature.sugar.nyash > feature.ancp
nyash2ancp feature.sugar.hako > feature.ancp
# L3: 極限糖衣
nyashfmt --ultra feature.ancp > feature.ultra.nyash
nyashfmt --ultra feature.ancp > feature.ultra.hako
# L4: 最大圧縮
nyash2fusion feature.ultra.nyash > feature.fusion
nyash2fusion feature.ultra.hako > feature.fusion
```
### ステップ3: AIとの対話
@ -284,10 +284,10 @@ cat *.fusion | clip
### ステップ4: 可逆展開
```bash
# AIの応答を展開
fusion2nyash --level=0 ai_response.fusion > fixed.nyash
fusion2nyash --level=0 ai_response.fusion > fixed.hako
# 差分確認
diff src/feature.nyash fixed.nyash
diff src/feature.hako fixed.hako
```
## 🛠️ ツールチェーン

View File

@ -251,9 +251,9 @@ r=d\:_.isValid()/:_|>n|>t
### 可逆変換の保証
```bash
# どの形式からでも相互変換可能
nyash format --from=explicit --to=sugar code.nyash
nyash format --from=sugar --to=ancp code.nyash
nyash format --from=ancp --to=explicit code.nyash
nyash format --from=explicit --to=sugar code.hako
nyash format --from=sugar --to=ancp code.hako
nyash format --from=ancp --to=explicit code.hako
```
## 🚀 Phase 15との相乗効果

View File

@ -178,7 +178,7 @@ result"
5. 使用例:コマンドラインツール
================================================================================
// nyashfmt.nyash - フォーマッターCLI
// nyashfmt.hako - フォーマッターCLI
static box Main {
main(args) {
local formatter = new NyashFormatter()
@ -285,7 +285,7 @@ box LearningMode {
8. 設定ファイル
================================================================================
// .nyashfmt.json - プロジェクト別設定
// .hakofmt.json - プロジェクト別設定
{
"mode": "standard",
"rules": {