fix ast printer for arrays containing label addresses

This commit is contained in:
Irmen de Jong 2024-12-15 13:53:24 +01:00
parent 28c721fa7d
commit d2827a7431

View File

@ -30,7 +30,8 @@ fun printAst(root: PtNode, skipLibraries: Boolean, output: (text: String) -> Uni
is PtBool -> it.toString()
is PtNumber -> it.number.toString()
is PtIdentifier -> it.name
else -> "?"
is PtAddressOf -> "& ${it.identifier.name}"
else -> "invalid array element $it"
}
}
"array len=${node.children.size} ${type(node.type)} [ $valuelist ]"