Mercurial > octave
diff libinterp/corefcn/interpreter.cc @ 27019:6cb675912f2b
move core of eval function to evaluator
* pt-eval.h, pt-eval.cc (tree_evaluator::eval): New functions
created from Fevalin function.
* interpreter.h, interpreter.cc (interpreter::eval): New functions.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 01 Apr 2019 13:11:14 +0000 |
parents | a20ead51515d |
children | 30e9204de313 |
line wrap: on
line diff
--- a/libinterp/corefcn/interpreter.cc Mon Apr 01 12:51:58 2019 +0000 +++ b/libinterp/corefcn/interpreter.cc Mon Apr 01 13:11:14 2019 +0000 @@ -1191,6 +1191,19 @@ return m_evaluator.eval_string (arg, silent, parse_status, nargout); } + octave_value_list interpreter::eval (const std::string& try_code, + int nargout) + { + return m_evaluator.eval (try_code, nargout); + } + + octave_value_list interpreter::eval (const std::string& try_code, + const std::string& catch_code, + int nargout) + { + return m_evaluator.eval (try_code, catch_code, nargout); + } + octave_value_list interpreter::evalin (const std::string& context, const std::string& try_code, int nargout)