mirror of
https://github.com/irmen/prog8.git
synced 2026-04-25 12:33:55 +00:00
fix pointer deref ast printer
This commit is contained in:
@@ -571,7 +571,18 @@ class AstToSourceTextConverter(val output: (text: String) -> Unit, val program:
|
||||
}
|
||||
|
||||
override fun visit(deref: ArrayIndexedPtrDereference) {
|
||||
output("???? Array Indexed Ptr Dereference should have been converted to other AST nodes ????")
|
||||
for(c in deref.chain) {
|
||||
output(c.first)
|
||||
c.second?.let {
|
||||
output("[")
|
||||
it.accept(this)
|
||||
output("]")
|
||||
}
|
||||
if(c !== deref.chain.last())
|
||||
output("^^.")
|
||||
}
|
||||
if(deref.derefLast)
|
||||
output("^^")
|
||||
}
|
||||
|
||||
override fun visit(initializer: StaticStructInitializer) {
|
||||
|
||||
Reference in New Issue
Block a user