ast printer correctly prints unroll and continue

This commit is contained in:
Irmen de Jong 2024-10-22 21:14:26 +02:00
parent 9927af1095
commit 6e2fd41a8b

View File

@ -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 ")