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:
nyash-codex
2025-09-28 01:33:58 +09:00
parent 8ea95c9d76
commit 34be7d2d79
63 changed files with 5008 additions and 356 deletions

View File

@ -436,6 +436,16 @@ sum = MathUtils.add(10, 20)
```
#### **アプリケーションエントリーポイント**
Nyash は次の順序でエントリを解決します(既定挙動)。
1) `Main.main` が存在すれば、常にそれを優先します。
2) `Main.main` が無く、トップレベルに `main()` があれば、それをエントリとして採用します。
備考
- 既定でトップレベル `main` も許可されます202509仕様
- 両方ある場合は `Main.main` を優先します(従来互換)。
- トップレベル `main` を禁止したい場合は `NYASH_ENTRY_ALLOW_TOPLEVEL_MAIN=0|false|off` を設定してください。
```nyash
# 🎯 推奨: Static Box Main パターン
static box Main {
@ -454,6 +464,13 @@ static box Main {
}
```
トップレベル `main()` を用いる場合(既定で許可):
```nyash
main() {
println("Hello")
}
```
---
## 🚀 **4. 最新機能・革新技術**