fix old block syntax in ast print routine

This commit is contained in:
Irmen de Jong 2021-06-01 22:08:23 +02:00
parent 078485134d
commit 9fbe1b38a5

View File

@ -33,7 +33,7 @@ class AstToSourceCode(val output: (text: String) -> Unit, val program: Program):
override fun visit(block: Block) {
val addr = if(block.address!=null) block.address.toHex() else ""
outputln("~ ${block.name} $addr {")
outputln("${block.name} $addr {")
scopelevel++
for(stmt in block.statements) {
outputi("")