26#if ! defined (octave_pt_stmt_h)
27#define octave_pt_stmt_h 1
29#include "octave-config.h"
57 : m_command (nullptr), m_expression (nullptr)
61 : m_command (c), m_expression (nullptr)
65 : m_command (nullptr), m_expression (e)
72 void set_print_flag (
bool print_flag);
76 bool is_command ()
const {
return m_command !=
nullptr; }
94 virtual void update_end_pos (
const filepos& pos);
101 void echo_code (
const std::string& prefix);
109 return ! (m_command || m_expression);
112 bool is_end_of_fcn_or_script ()
const;
114 bool is_end_of_file ()
const;
147 : m_function_body (false), m_anon_function_body (false),
148 m_script_body (false) { }
151 : m_function_body (false), m_anon_function_body (false),
152 m_script_body (false) { push_back (s); }
220 std::list<bp_type> breakpoints_and_conds ();
223 const std::string& file,
225 const std::string& condition);
228 const std::string& file);
238 bool m_function_body;
241 bool m_anon_function_body;
247OCTAVE_END_NAMESPACE(octave)
Provides threadsafe access to octave.
void accept(tree_walker &tw)
bool is_function_body() const
void mark_as_anon_function_body()
comment_list leading_comments() const
bool is_script_body() const
comment_list trailing_comments() const
void mark_as_script_body()
tree_statement_list(tree_statement *s)
bool is_anon_function_body() const
void mark_as_function_body()
tree_expression * expression()
tree_statement(tree_expression *e)
tree_statement(tree_command *c)
bool is_expression() const
void set_expression(tree_expression *e)
bool is_null_statement() const
comment_list leading_comments() const
comment_list trailing_comments() const
void accept(tree_walker &tw)
void set_command(tree_command *c)
virtual void visit_statement(tree_statement &)
virtual void visit_statement_list(tree_statement_list &)
virtual filepos end_pos() const =0
virtual comment_list trailing_comments() const =0
virtual filepos beg_pos() const =0
bool is_breakpoint() const
virtual void delete_breakpoint()
virtual comment_list leading_comments() const =0
const std::string bp_cond() const
bool is_active_breakpoint(tree_evaluator &tw) const
virtual int column() const
virtual void set_breakpoint(const std::string &condition)
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn