Phase 8.4: Complete AST→MIR Lowering - Basic object operations implemented

Co-authored-by: moe-charm <217100418+moe-charm@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-08-14 01:48:40 +00:00
parent eaf97401c7
commit cdeb4818a7
6 changed files with 219 additions and 3 deletions

View File

@ -0,0 +1,19 @@
box SimpleData {
init { x, y }
pack(a, b) {
me.x = a
me.y = b
}
sum() {
return me.x + me.y
}
}
static box Main {
main() {
local data = new SimpleData(10, 20)
return data.sum()
}
}