parser(match): add MVP type patterns (IntegerBox(x)/StringBox(s)) via AST If-chain; keep literal-only path using PeekExpr; add smoke app (apps/tests/match_type_pattern_basic.nyash); build + stage-2 smokes green

This commit is contained in:
Selfhosting Dev
2025-09-19 08:34:29 +09:00
parent f4e340da08
commit 9142476484
348 changed files with 2539 additions and 281 deletions

View File

@ -0,0 +1,13 @@
box Greeter {
name: StringBox = "Nyash"
greeting: StringBox => "Hello " + me.name
}
static box Main {
main(args) {
local g = new Greeter()
print(g.greeting)
return 0
}
}