Stage-B: add --v1-compat opt-in path and smoke
This commit is contained in:
@ -4,6 +4,6 @@
|
||||
- [x] `ParserBox.parse_program2` → AST JSON を取得(Quiet: 1行)。Stage‑A map parser は空/空白/エスケープに対応。
|
||||
- [x] FlowEntry.emit_v0_from_ast_with_context(using/extern メタを統合)。
|
||||
- [x] selfhost canary(return/binop/if/index)を Stage‑B でも PASS(opt‑in `SMOKES_ENABLE_STAGEB=1` で緑)。
|
||||
- [ ] v1→v0 降格(MirJsonV1Adapter)経路を整備(必要箇所のみ)。
|
||||
- [x] v1→v0 降格(MirJsonV1Adapter)経路を整備(`--v1-compat` / `selfhost_stageb_v1_compat_vm` opt-in)。
|
||||
- [x] tools/smokes/v2/profiles/quick/core/selfhost_* を追加(opt‑in)。配列ネスト/境界ケースを含む。
|
||||
- [x] ドキュメント更新(README/PLAN/CHECKLIST)。
|
||||
|
||||
@ -9,7 +9,7 @@
|
||||
1) 入口統合(Stage‑B ルートの opt‑in 実装)
|
||||
- `lang/src/compiler/entry/compiler_stageb.hako` を追加(既定: Stage‑B emit 専用)。
|
||||
- `ParserBox.parse_program2(src)` → `FlowEntryBox.emit_v0_from_ast_with_context(..., usings, modules?, externs)` → print 1 行 JSON。
|
||||
- フラグ: `--prefer-cfg <N>` で pipeline 選好を切替。Stage‑B は using あり / externs あり時の経路を統合済み。
|
||||
- フラグ: `--prefer-cfg <N>` で pipeline 選好を切替。`--v1-compat` で MirJsonV1Adapter 経路を opt-in。
|
||||
2) 代表構文の緑化
|
||||
- binop/compare/if/index/new/boxcall/externcall を pipeline_v2 で受理できるよう確認。
|
||||
- Stage‑A canary と同等の selfhost canary を Stage‑B でも PASS。
|
||||
|
||||
@ -30,8 +30,10 @@
|
||||
|
||||
実装メモ
|
||||
- Stage‑B エントリを `lang/src/compiler/entry/compiler_stageb.hako` として分離。`FlowEntryBox.emit_v0_from_ast_with_context`(using/extern メタを集約)を既定で使う。
|
||||
- `--v1-compat` を指定すると `FlowEntryBox.emit_v1_compat_from_ast_with_meta` を経由(MirJsonV1Adapter 降格)。
|
||||
- Stage‑A map parser を強化(空/空白/エスケープ対応)。対応済み canary: `index_operator_hako`
|
||||
- Stage‑B canary は `SMOKES_ENABLE_STAGEB=1` で有効化。binop/if/index(ネスト・境界ケース込み)を opt-in で検証可能。
|
||||
- v1 互換 canary `selfhost_stageb_v1_compat_vm.sh` は `SMOKES_ENABLE_STAGEB_V1=1` で opt-in。
|
||||
- Module 解決: `nyash.toml` に lang/compiler/shared/vm の論理名を追記し、using resolver から参照可能にした。
|
||||
|
||||
マイルストーン
|
||||
|
||||
Reference in New Issue
Block a user