- ArrayLiteral/MapLiteralのAST定義追加
- パーサーで[...]と{...}構文をサポート
- MIR Builderでnew Box() + push/setへのdesugaring実装
- テストケースとスモークスクリプト追加
- CURRENT_TASK.mdにネームスペース解決Phase-1計画を追記
- 3段階解決順序(ローカル→エイリアス→プラグイン)の設計合意
12 lines
237 B
Plaintext
12 lines
237 B
Plaintext
static box Main {
|
|
main(args) {
|
|
local console = new ConsoleBox()
|
|
// map literal sugar (string keys)
|
|
local m = {"name": "Alice", "age": 25}
|
|
console.println(m.size())
|
|
console.println(m.get("name"))
|
|
return 0
|
|
}
|
|
}
|
|
|