aboutsummaryrefslogtreecommitdiffstats
path: root/src/resp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/resp.cpp')
-rw-r--r--src/resp.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resp.cpp b/src/resp.cpp
index 0d1af5a..824acff 100644
--- a/src/resp.cpp
+++ b/src/resp.cpp
@@ -143,8 +143,8 @@ main(int argc, char** argv)
try {
while (is.good() && !is.eof()) {
Cursor loc(*f);
- AST* exp = readExpression(loc, is);
- if (!exp || (exp->as_tuple() && exp->as_tuple()->tup_len() == 1))
+ AST* exp = read_expression(cenv->penv, loc, is);
+ if (!exp || (exp->to_tuple() && exp->to_tuple()->tup_len() == 1))
break;
const AST* ast = penv.parse(exp);