vm/router: minimal special-method extension (equals/1); toString mapping kept
mir: add TypeCertainty to Callee::Method (diagnostic only); plumb through builder/JSON/printer; backends ignore behaviorally using: confirm unified prelude resolver entry for all runner modes docs: update Callee architecture with certainty; update call-instructions; CURRENT_TASK note tests: quick 40/40 PASS; integration (LLVM) 17/17 PASS
This commit is contained in:
@ -136,7 +136,8 @@ pub enum Callee {
|
||||
Method {
|
||||
box_name: String, // "StringBox", "ConsoleStd"
|
||||
method: String, // "upper", "print"
|
||||
receiver: Option<ValueId> // レシーバオブジェクト(Someの場合)
|
||||
receiver: Option<ValueId>, // レシーバオブジェクト(Someの場合)
|
||||
certainty: TypeCertainty, // 追加: Known/Union(型確度)
|
||||
},
|
||||
|
||||
/// 関数値による動的呼び出し
|
||||
@ -149,6 +150,16 @@ pub enum Callee {
|
||||
}
|
||||
```
|
||||
|
||||
補足: 型確度(TypeCertainty)
|
||||
|
||||
```rust
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
pub enum TypeCertainty {
|
||||
Known, // 受信クラスが一意に既知(origin 伝播・静的文脈)
|
||||
Union, // 分岐合流などで非一意(VM などのルータに委譲)
|
||||
}
|
||||
```
|
||||
|
||||
### MIRビルダの変更
|
||||
|
||||
```rust
|
||||
@ -296,4 +307,4 @@ ChatGPT5 Proの洞察により、単純なバグ修正から根本的アーキ
|
||||
|
||||
---
|
||||
|
||||
*この設計は2025-09-23にChatGPT5 Proとの協働により策定されました。*
|
||||
*この設計は2025-09-23にChatGPT5 Proとの協働により策定されました。*
|
||||
|
||||
@ -47,15 +47,15 @@ Phase 15.5でCore Box完全削除後のNyashテストシステム。すべての
|
||||
|
||||
## 🔧 テスト環境設定
|
||||
|
||||
### 重要な環境変数
|
||||
### 重要な環境変数(開発時の補助)
|
||||
```bash
|
||||
# 必須設定
|
||||
NYASH_ENTRY_ALLOW_TOPLEVEL_MAIN=1 # main関数警告を抑制
|
||||
# エントリ解決(既定ON: top-level main も許可されます。無効化したい場合のみ0を設定)
|
||||
# export NYASH_ENTRY_ALLOW_TOPLEVEL_MAIN=0
|
||||
|
||||
# プラグイン設定(Phase 15.5以降は削除不可)
|
||||
# NYASH_DISABLE_PLUGINS=1 # ❌ 使用不可(すべてプラグイン化済み)
|
||||
|
||||
# デバッグ用
|
||||
# デバッグ用(任意)
|
||||
NYASH_CLI_VERBOSE=1 # 詳細ログ出力
|
||||
```
|
||||
|
||||
@ -152,4 +152,4 @@ Phase 15.5でCore Box削除後、プラグイン実装が不完全。現在調
|
||||
|
||||
- [Phase 15.5 Core Box Unification](../roadmap/phases/phase-15/phase-15.5-core-box-unification.md)
|
||||
- [Plugin System Reference](../../reference/plugin-system/)
|
||||
- [PyVM Usage Guidelines](../../reference/pyvm-usage-guidelines.md)
|
||||
- [PyVM Usage Guidelines](../../reference/pyvm-usage-guidelines.md)
|
||||
|
||||
Reference in New Issue
Block a user