docs+runner+parser: SSOT+AST using finalized (legacy text inlining removed); provider verify reads nyash.toml; preflight warn hook; method-body guard removed; CURRENT_TASK updated for next JSON work

This commit is contained in:
Selfhosting Dev
2025-09-26 00:27:02 +09:00
parent d9f26d4549
commit 85084664c2
77 changed files with 1259 additions and 1026 deletions

View File

@ -0,0 +1,27 @@
static box Main {
init { console }
main() {
me.console = new ConsoleBox()
box User {
private { age, passwordHash }
public { name }
init { name, age }
birth(n, a) {
me.name = n
me.age = a
}
}
local u = new User("Alice", 20)
me.console.log("name(public)=" + u.name) # OK: public
# 以下は外部からprivateフィールドへのアクセス → エラーになる想定
u.age = 30 # 外部からの代入NG
me.console.log(u.age) # 外部からの参照NG
}
}