]> hydra-www.ietfng.org Git - dyna2/commitdiff
Issue #1: display [] instead of &nil.
authorTim Vieira <tim.f.vieira@gmail.com>
Wed, 10 Jul 2013 23:14:58 +0000 (19:14 -0400)
committerTim Vieira <tim.f.vieira@gmail.com>
Wed, 10 Jul 2013 23:14:58 +0000 (19:14 -0400)
src/Dyna/Backend/Python/post/trace.py
test/repl/trace.dynadoc

index ed72d2f33e05b844a8399ec984982e12afa9a361..2a1716125580a9ef408daf8db06a2e3e94d090cf 100644 (file)
@@ -200,6 +200,10 @@ class Crux(object):
                 return self.get_function(e)
 
             # handle lists
+
+            if e.label == '& nil':
+                return '[]'
+
             if e.label == '& cons':
                 _e = e
                 a = []
index d20302437a65fefb8487be18e46ed955c5e0c179..eadb7908a36431aaa228d69ad588b97ca702ddd8 100644 (file)
@@ -110,4 +110,9 @@ x = [1, 2, 3].
 x = [1, 2, 3]
 |
 └─ = [1, 2, 3]
-   x = [1, 2, 3].
\ No newline at end of file
+   x = [1, 2, 3].
+
+
+% TODO: bug
+% > trace [1,2,3]
+%  No trace for [1,2,3]