mirror of
https://github.com/irmen/prog8.git
synced 2024-11-22 00:31:56 +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")
|
||||
}
|
||||
|
||||
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) {
|
||||
containment.element.accept(this)
|
||||
output(" in ")
|
||||
|
Loading…
Reference in New Issue
Block a user