Implement Phase 5: Control flow & exceptions in MIR/VM - Core functionality complete

Co-authored-by: moe-charm <217100418+moe-charm@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-08-13 06:23:28 +00:00
parent 2e9b5daadf
commit d3a85b2305
8 changed files with 468 additions and 0 deletions

View File

@ -0,0 +1,21 @@
// Test MIR control flow and exception handling - Phase 5
// Test loop functionality
local counter
counter = 0
loop(counter < 3) {
print(counter)
counter = counter + 1
}
// Test try/catch functionality
try {
print("In try block")
throw "Test exception"
print("This should not execute")
} catch (exception) {
print("Caught exception")
}
print("Program completed")