Mercurial > octave
diff libinterp/corefcn/interpreter.cc @ 27014:daab1b311a98
move core of assignin function to evaluator
* pt-eval.h, pt-eval.cc (tree_evaluator::assignin): Move innter
workings of assignin function here from oct-parse.yy.
* interpreter.h, interpreter.cc (interpreter::assignin): New function.
* oct-parse.yy (Fassignin): Extract arguments and call
interpreter::assignin.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sun, 31 Mar 2019 19:35:39 +0000 |
parents | 20881d195d20 |
children | 4d9e1a832a55 |
line wrap: on
line diff
--- a/libinterp/corefcn/interpreter.cc Tue Apr 02 14:49:58 2019 -0700 +++ b/libinterp/corefcn/interpreter.cc Sun Mar 31 19:35:39 2019 +0000 @@ -1232,6 +1232,13 @@ m_evaluator.assign (name, val); } + void interpreter::assignin (const std::string& context, + const std::string& name, + const octave_value& val) + { + m_evaluator.assignin (context, name, val); + } + bool interpreter::at_top_level (void) const { return m_evaluator.at_top_level ();