Previous Up Next

13  Pretty-printer for trees

complete, can be “prettier”, though.

The pretty-printer is implemented analogous to one for Tiger-programs using the layout module. The pretty-printer is not part of [App98b], but useful for debugging.

Perhaps it’s worthwhile to have also a “flat” translation, which does not show the tree structure but is more like assembler text?

!?
To do:
Make the interface comparable to the one of the pretty printer. I.e., make some good nameing convention for transforming into strings (look also at the standard library).
 ,
Previous Up Next