diff options
Diffstat (limited to 'src/repl.cpp')
-rw-r--r-- | src/repl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/repl.cpp b/src/repl.cpp index fa08238..88885ea 100644 --- a/src/repl.cpp +++ b/src/repl.cpp @@ -97,7 +97,7 @@ eval(CEnv& cenv, const string& name, istream& is, bool execute) // Compile all expressions into it for (list< pair<AST*, AST*> >::const_iterator i = exprs.begin(); i != exprs.end(); ++i) - val = cenv.compile(i->second); + val = i->second->compile(cenv); // Finish compilation cenv.engine()->finishFunction(cenv, f, resultT, val); @@ -135,7 +135,7 @@ repl(CEnv& cenv) try { // Create function for this repl loop f = cenv.engine()->startFunction(cenv, replFnName, resultT, ATuple(cursor)); - cenv.engine()->finishFunction(cenv, f, resultT, cenv.compile(result)); + cenv.engine()->finishFunction(cenv, f, resultT, result->compile(cenv)); callPrintCollect(cenv, f, result, resultT, true); } catch (Error& e) { cenv.out << e.msg << endl; |