diff options
Diffstat (limited to 'src/repl.cpp')
-rw-r--r-- | src/repl.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/repl.cpp b/src/repl.cpp index f6f8a26..0ec644c 100644 --- a/src/repl.cpp +++ b/src/repl.cpp @@ -36,7 +36,7 @@ readParseType(CEnv& cenv, Cursor& cursor, istream& is, AST*& exp, AST*& ast) throw e; } - if (exp->to<ATuple*>() && exp->to<ATuple*>()->empty()) + if (exp->to_tuple() && exp->to_tuple()->empty()) return false; ast = cenv.penv.parse(exp); // Parse input @@ -114,12 +114,12 @@ eval(CEnv& cenv, Cursor& cursor, istream& is, bool execute) // Compile top-level (lifted) functions Code exprs; for (Code::const_iterator i = lifted.begin(); i != lifted.end(); ++i) { - const ATuple* call = (*i)->to<const ATuple*>(); + const ATuple* call = (*i)->to_tuple(); if (call && is_form(call, "def") && is_form(call->list_ref(2), "fn")) { val = resp_compile(cenv, call); } else { assert(*i); - ATuple* tup = (*i)->to<ATuple*>(); + ATuple* tup = (*i)->to_tuple(); if (!tup || (tup->tup_len() > 0)) exprs.push_back(*i); } |