summaryrefslogtreecommitdiff
path: root/files/practicum/GenTreePrint.icl
diff options
context:
space:
mode:
Diffstat (limited to 'files/practicum/GenTreePrint.icl')
-rw-r--r--files/practicum/GenTreePrint.icl21
1 files changed, 21 insertions, 0 deletions
diff --git a/files/practicum/GenTreePrint.icl b/files/practicum/GenTreePrint.icl
new file mode 100644
index 0000000..09bebe7
--- /dev/null
+++ b/files/practicum/GenTreePrint.icl
@@ -0,0 +1,21 @@
+implementation module GenTreePrint
+
+import StdEnv
+import GenTree
+import TextCompose
+
+instance toString (GenTree a b) | toString a & toString b where
+ toString tree = indentTree tree
+// toString tree = tree2D tree
+
+/******************************************************************************************
+ version with indented trees
+******************************************************************************************/
+indentTree :: !(GenTree a b) -> String | toString a & toString b
+indentTree tree = ...
+
+/******************************************************************************************
+ version with TextCompose
+******************************************************************************************/
+tree2D :: !(GenTree a b) -> String | toString a & toString b
+tree2D tree = ...