mirror of
https://github.com/irmen/prog8.git
synced 2025-02-22 01:29:07 +00:00
fix ast printer for arrays containing label addresses
This commit is contained in:
parent
28c721fa7d
commit
d2827a7431
@ -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 ]"
|
||||
|
Loading…
x
Reference in New Issue
Block a user