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)
76 bool is_command ()
const {
return m_command !=
nullptr; }
100 void echo_code (
const std::string& prefix);
108 return ! (m_command || m_expression);
146 : m_function_body (false), m_anon_function_body (false),
147 m_script_body (false) { }
150 : m_function_body (false), m_anon_function_body (false),
151 m_script_body (false) { push_back (s); }
206 const std::string& file,
208 const std::string& condition);
211 const std::string& file);
221 bool m_function_body;
224 bool m_anon_function_body;
230OCTAVE_END_NAMESPACE(octave)
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()
comment_list leading_comments() const
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
tree_expression * expression()
void echo_code(const std::string &prefix)
void set_print_flag(bool print_flag)
tree_statement(tree_expression *e)
tree_statement(tree_command *c)
bool is_end_of_file() const
bool is_expression() const
void set_expression(tree_expression *e)
bool is_null_statement() const
void set_breakpoint(const std::string &condition)
bool is_breakpoint() const
comment_list leading_comments() const
virtual void update_end_pos(const filepos &pos)
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