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

@ -24,6 +24,15 @@ box ClassName {
}
```
### エントリーポイント(優先順)
Nyash はエントリを以下の順で解決します。
1) `Main.main` があれば優先
2) なければトップレベル `main()`
両方ある場合は `Main.main` が使われます。トップレベル `main` は既定で許可されています(無効化したい場合は `NYASH_ENTRY_ALLOW_TOPLEVEL_MAIN=0`)。
### Static Boxエントリーポイント
```nyash
static box Main {
@ -37,6 +46,14 @@ static box Main {
}
```
### トップレベル main既定で許可
```nyash
main() {
println("Hello Nyash!")
return 0
}
```
### プロパティstored / computed / once / birth_once
```nyash
box MyBox {