aboutsummaryrefslogtreecommitdiff
path: root/python/reader.py
diff options
context:
space:
mode:
authorJoel Martin <github@martintribe.org>2014-04-23 21:46:57 -0500
committerJoel Martin <github@martintribe.org>2014-04-23 21:46:57 -0500
commit89bd4de1e2704c1bc562788b2c5e4fc08b71a538 (patch)
tree3ec33ca7e1030fdef0905317fdf911b8487685f0 /python/reader.py
parent85cc53f35b8302e13f0014454ac320b971c196db (diff)
downloadmal-89bd4de1e2704c1bc562788b2c5e4fc08b71a538.tar.gz
mal-89bd4de1e2704c1bc562788b2c5e4fc08b71a538.zip
Perl: add vector, hash-map, metadata, atom support. TCO let*
- Changes all collections to be one level of inderection where the top level is always a hash containing 'meta' and 'val'.
Diffstat (limited to 'python/reader.py')
-rw-r--r--python/reader.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/reader.py b/python/reader.py
index 846e2a8..13b1f7b 100644
--- a/python/reader.py
+++ b/python/reader.py
@@ -100,5 +100,5 @@ def read_form(reader):
def read_str(str):
tokens = tokenize(str)
- if len(tokens) == 0: raise Blank
+ if len(tokens) == 0: raise Blank("Blank Line")
return read_form(Reader(tokens))