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:
@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user