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),
58 m_comment_list (nullptr) { }
61 : m_command (c), m_expression (nullptr), m_comment_list (cl) { }
64 : m_command (nullptr), m_expression (e), m_comment_list (cl) { }
74 bool is_command ()
const {
return m_command !=
nullptr; }
93 void echo_code (
const std::string& prefix);
103 return ! (m_command || m_expression || m_comment_list);
144 : m_function_body (false), m_anon_function_body (false),
145 m_script_body (false) { }
148 : m_function_body (false), m_anon_function_body (false),
149 m_script_body (false) {
append (s); }
184 const std::string& file,
186 const std::string& condition);
189 const std::string& file);
199 bool m_function_body;
202 bool m_anon_function_body;
208 OCTAVE_END_NAMESPACE(
octave)
void append(const tree_statement * &s)
iterator erase(iterator pos)
Provides threadsafe access to octave.
void accept(tree_walker &tw)
bool is_function_body() const
octave_value_list list_breakpoints()
void mark_as_anon_function_body()
std::list< bp_type > breakpoints_and_conds()
int set_breakpoint(int line, const std::string &condition)
bool is_script_body() const
void delete_breakpoint(int line)
void mark_as_script_body()
bp_table::bp_lines remove_all_breakpoints(event_manager &evmgr, const std::string &file)
tree_statement_list(tree_statement *s)
bool is_anon_function_body() const
bp_table::bp_lines add_breakpoint(event_manager &evmgr, const std::string &file, const bp_table::bp_lines &lines, const std::string &condition)
void mark_as_function_body()
std::string bp_cond() const
bool is_active_breakpoint(tree_evaluator &tw) const
void echo_code(const std::string &prefix)
void set_print_flag(bool print_flag)
void set_location(int l, int c)
comment_list * comment_text()
bool is_end_of_file() const
bool is_expression() const
void set_expression(tree_expression *e)
bool is_null_statement() const
tree_expression * expression()
void set_breakpoint(const std::string &condition)
bool is_breakpoint() const
tree_statement(tree_command *c, comment_list *cl)
tree_statement(tree_expression *e, comment_list *cl)
void accept(tree_walker &tw)
void set_command(tree_command *c)
bool is_end_of_fcn_or_script() const
virtual void visit_statement(tree_statement &)
virtual void visit_statement_list(tree_statement_list &)
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn