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