mirror of
https://github.com/irmen/prog8.git
synced 2024-10-19 07:23:56 +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 -> {
|
else -> {
|
||||||
TODO("astvm implement statement $stmt")
|
TODO("astvm implement statement $stmt")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user