26 #if defined (HAVE_CONFIG_H)
40 auto p = lst.
begin ();
42 while (p != lst.
end ())
48 if (m_do_lvalue_check && ! elt->
lvalue_ok ())
49 errmsg (
"invalid lvalue in multiple assignment", elt->
line ());
62 errmsg (
"invalid lvalue in for command", cmd.
line ());
91 errmsg (
"invalid number of output arguments in for command",
94 m_do_lvalue_check =
true;
98 m_do_lvalue_check =
false;
119 m_do_lvalue_check =
true;
123 m_do_lvalue_check =
false;
140 errmsg (
"invalid lvalue in assignment", expr.
line ());
159 errmsg (
"invalid lvalue used for identifier in try-catch command",
169 catch_code->
accept (*
this);
173 tree_checker::errmsg (
const std::string& msg,
int line)
175 if (m_file_name.empty ())
176 error (
"%s", msg.c_str ());
178 error (
"%s: %d: %s", m_file_name.c_str (),
line, msg.c_str ());
181 OCTAVE_END_NAMESPACE(
octave)
std::size_t length() const
void accept(tree_walker &tw)
void visit_complex_for_command(tree_complex_for_command &)
void visit_simple_for_command(tree_simple_for_command &)
void visit_simple_assignment(tree_simple_assignment &)
void visit_multi_assignment(tree_multi_assignment &)
void visit_argument_list(tree_argument_list &)
void visit_try_catch_command(tree_try_catch_command &)
tree_statement_list * body()
tree_argument_list * left_hand_side()
tree_expression * control_expr()
virtual bool lvalue_ok() const
tree_argument_list * left_hand_side()
tree_expression * right_hand_side()
tree_expression * left_hand_side()
tree_expression * right_hand_side()
tree_expression * left_hand_side()
tree_expression * control_expr()
tree_expression * maxproc_expr()
tree_statement_list * body()
void accept(tree_walker &tw)
tree_statement_list * cleanup()
tree_identifier * identifier()
tree_statement_list * body()
virtual void accept(tree_walker &tw)=0
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn
void() error(const char *fmt,...)