feat(phase12.7): 糖衣構文Phase 12.7-B完了 + 自律型AI開発システム制御機能
🚀 Phase 12.7-B: ChatGPT5糖衣構文(基本実装完了) - パイプライン演算子(|>)実装 - セーフアクセス(?.)とデフォルト値(??)実装 - sugar gateによる段階的有効化機能 - 糖衣構文テストスイート追加 🤖 自律型AI開発システム改善 - codex-async-notify.sh: タスク制御指示追加 - "下の箱を積み過ぎないように先に進んでください" - "フェーズが終わったと判断したら止まってください" - プロセス数表示機能の改善(count_running_codex_display) - 自動停止機能が正常動作(Phase 12.7-C前で停止確認) 📚 ドキュメント更新 - Paper 13: 自律型AI協調開発システムの革新性を文書化 - ANCP可逆マッピング仕様追加 - nyfmt PoC(フォーマッター)計画追加 🧱 箱理論の体現 - 74k行のコードベース(Phase 15で20k行を目指す) - ANCP適用で最終的に6k行相当を狙う - 世界最小の実用コンパイラへの道 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
16
apps/nyfmt-poc/README.md
Normal file
16
apps/nyfmt-poc/README.md
Normal file
@ -0,0 +1,16 @@
|
||||
# nyfmt PoC Examples (Documentation Only)
|
||||
|
||||
This directory hosts small snippets demonstrating reversible formatting goals. No runtime behavior changes or formatter are included in‑tree yet.
|
||||
|
||||
Examples to explore:
|
||||
- pipeline-compact.nyash: pipeline style vs canonical call nesting
|
||||
- safe-access-default.nyash: `?.` and `??` sugar vs explicit conditionals
|
||||
- coalesce-range-roundtrip.nyash: `??` and `a..b` triad (Before/Canonical/Round‑Trip)
|
||||
- compound-assign-roundtrip.nyash: `+=` triad (Before/Canonical/Round‑Trip)
|
||||
|
||||
Enable PoC smoke hints:
|
||||
```bash
|
||||
NYFMT_POC=1 ./tools/nyfmt_smoke.sh
|
||||
```
|
||||
|
||||
Notes: The real formatter prototype lives out of tree during early PoC. This folder documents intent and testable round‑trip expectations.
|
||||
14
apps/nyfmt-poc/coalesce-range-roundtrip.nyash
Normal file
14
apps/nyfmt-poc/coalesce-range-roundtrip.nyash
Normal file
@ -0,0 +1,14 @@
|
||||
# Round-trip triad: Default (??) + Range (a..b)
|
||||
|
||||
# Before (sugar)
|
||||
user_name = user?.profile?.name ?? "guest"
|
||||
nums = 1 .. 5
|
||||
|
||||
# Canonical
|
||||
# user_name = peek user { null => null, else => peek user.profile { null => null, else => user.profile.name } }
|
||||
# nums = Range(1, 5)
|
||||
|
||||
# Round-Trip (expected)
|
||||
# user_name = user?.profile?.name ?? "guest"
|
||||
# nums = 1 .. 5
|
||||
|
||||
11
apps/nyfmt-poc/compound-assign-roundtrip.nyash
Normal file
11
apps/nyfmt-poc/compound-assign-roundtrip.nyash
Normal file
@ -0,0 +1,11 @@
|
||||
# Round-trip triad: Compound Assign
|
||||
|
||||
# Before (sugar)
|
||||
i += 1
|
||||
|
||||
# Canonical
|
||||
# i = i + 1
|
||||
|
||||
# Round-Trip (expected)
|
||||
# i += 1
|
||||
|
||||
8
apps/nyfmt-poc/pipeline-compact.nyash
Normal file
8
apps/nyfmt-poc/pipeline-compact.nyash
Normal file
@ -0,0 +1,8 @@
|
||||
# PoC example: pipeline style vs canonical nesting
|
||||
|
||||
# Target sugar (not yet parsed by runtime):
|
||||
# result = data |> normalize |> transform |> process
|
||||
|
||||
# Canonical form (current Nyash):
|
||||
local result = process(transform(normalize(data)))
|
||||
|
||||
13
apps/nyfmt-poc/safe-access-default.nyash
Normal file
13
apps/nyfmt-poc/safe-access-default.nyash
Normal file
@ -0,0 +1,13 @@
|
||||
# PoC example: safe access and default value
|
||||
|
||||
# Target sugar (not yet parsed by runtime):
|
||||
# name = user?.profile?.name ?? "guest"
|
||||
|
||||
# Canonical form (current Nyash):
|
||||
local name
|
||||
if user != null and user.profile != null {
|
||||
name = user.profile.name
|
||||
} else {
|
||||
name = "guest"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user