mirror of
https://github.com/irmen/prog8.git
synced 2025-01-19 04:31:40 +00:00
added Foreverloop statement to the ast simulator
This commit is contained in:
parent
29ac160811
commit
82dce2dd53
@ -543,6 +543,17 @@ class AstVm(val program: Program, compilationTarget: String) {
|
||||
}
|
||||
}
|
||||
}
|
||||
is ForeverLoop -> {
|
||||
while(true) {
|
||||
try {
|
||||
executeAnonymousScope(stmt.body)
|
||||
} catch (b: LoopControlBreak) {
|
||||
break
|
||||
} catch (c: LoopControlContinue) {
|
||||
continue
|
||||
}
|
||||
}
|
||||
}
|
||||
else -> {
|
||||
TODO("astvm implement statement $stmt")
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user