mirror of
https://github.com/irmen/prog8.git
synced 2024-12-23 09:32:43 +00:00
ast printer correctly prints unroll and continue
This commit is contained in:
parent
9927af1095
commit
6e2fd41a8b
@ -53,6 +53,17 @@ class AstToSourceTextConverter(val output: (text: String) -> Unit, val program:
|
|||||||
outputln("}\n")
|
outputln("}\n")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override fun visit(continueStmt: Continue) {
|
||||||
|
output("continue")
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun visit(unrollLoop: UnrollLoop) {
|
||||||
|
output("unroll ")
|
||||||
|
unrollLoop.iterations.accept(this)
|
||||||
|
output(" ")
|
||||||
|
unrollLoop.body.accept(this)
|
||||||
|
}
|
||||||
|
|
||||||
override fun visit(containment: ContainmentCheck) {
|
override fun visit(containment: ContainmentCheck) {
|
||||||
containment.element.accept(this)
|
containment.element.accept(this)
|
||||||
output(" in ")
|
output(" in ")
|
||||||
|
Loading…
Reference in New Issue
Block a user