GNU Octave 10.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 
Loading...
Searching...
No Matches
tree_statement Class Reference

#include "pt-stmt.h"

Inheritance diagram for tree_statement:
tree

Public Member Functions

 tree_statement ()
 
 tree_statement (tree_command *c)
 
 tree_statement (tree_expression *e)
 
 ~tree_statement ()
 
void accept (tree_walker &tw)
 
filepos beg_pos () const
 
std::string bp_cond () const
 
int column () const
 
tree_commandcommand ()
 
void delete_breakpoint ()
 
void echo_code (const std::string &prefix)
 
filepos end_pos () const
 
tree_expressionexpression ()
 
bool is_active_breakpoint (tree_evaluator &tw) const
 
bool is_breakpoint () const
 
bool is_command () const
 
bool is_end_of_fcn_or_script () const
 
bool is_end_of_file () const
 
bool is_expression () const
 
bool is_null_statement () const
 
comment_list leading_comments () const
 
int line () const
 
bool print_result ()
 
void set_breakpoint (const std::string &condition)
 
void set_command (tree_command *c)
 
void set_expression (tree_expression *e)
 
void set_print_flag (bool print_flag)
 
virtual void update_end_pos (const filepos &pos)
 
- Public Member Functions inherited from tree
 tree ()
 
virtual ~tree ()=default
 
const std::string bp_cond () const
 
bool is_active_breakpoint (tree_evaluator &tw) const
 
bool is_breakpoint () const
 
bool meets_bp_condition (tree_evaluator &tw) const
 
std::string str_print_code ()
 

Detailed Description

Definition at line 52 of file pt-stmt.h.

Constructor & Destructor Documentation

◆ tree_statement() [1/3]

tree_statement::tree_statement ( )
inline

Definition at line 56 of file pt-stmt.h.

◆ tree_statement() [2/3]

tree_statement::tree_statement ( tree_command c)
inline

Definition at line 60 of file pt-stmt.h.

◆ tree_statement() [3/3]

tree_statement::tree_statement ( tree_expression e)
inline

Definition at line 64 of file pt-stmt.h.

◆ ~tree_statement()

tree_statement::~tree_statement ( )

Definition at line 56 of file pt-stmt.cc.

Member Function Documentation

◆ accept()

void tree_statement::accept ( tree_walker tw)
inlinevirtual

◆ beg_pos()

filepos tree_statement::beg_pos ( ) const
virtual

Implements tree.

Definition at line 118 of file pt-stmt.cc.

References tree::beg_pos().

Referenced by tree_statement_list::beg_pos().

◆ bp_cond()

std::string tree_statement::bp_cond ( ) const

Definition at line 139 of file pt-stmt.cc.

References tree::bp_cond().

◆ column()

int tree_statement::column ( ) const
virtual

Reimplemented from tree.

Definition at line 155 of file pt-stmt.cc.

References tree::column().

Referenced by tree_evaluator::execute_user_function(), and tree_evaluator::visit_statement().

◆ command()

◆ delete_breakpoint()

void tree_statement::delete_breakpoint ( )
virtual

Reimplemented from tree.

Definition at line 85 of file pt-stmt.cc.

References tree::delete_breakpoint().

◆ echo_code()

void tree_statement::echo_code ( const std::string &  prefix)

Definition at line 163 of file pt-stmt.cc.

References accept(), and octave_stdout.

◆ end_pos()

filepos tree_statement::end_pos ( ) const
virtual

Implements tree.

Definition at line 124 of file pt-stmt.cc.

References tree::end_pos().

Referenced by tree_statement_list::end_pos().

◆ expression()

◆ is_active_breakpoint()

bool tree_statement::is_active_breakpoint ( tree_evaluator tw) const

Definition at line 102 of file pt-stmt.cc.

References tree::is_active_breakpoint().

◆ is_breakpoint()

bool tree_statement::is_breakpoint ( ) const

Definition at line 94 of file pt-stmt.cc.

References tree::is_breakpoint().

◆ is_command()

bool tree_statement::is_command ( ) const
inline

Definition at line 76 of file pt-stmt.h.

Referenced by tree_breakpoint::visit_statement().

◆ is_end_of_fcn_or_script()

bool tree_statement::is_end_of_fcn_or_script ( ) const

Definition at line 171 of file pt-stmt.cc.

References tree_no_op_command::is_end_of_fcn_or_script().

◆ is_end_of_file()

bool tree_statement::is_end_of_file ( ) const

Definition at line 188 of file pt-stmt.cc.

References tree_no_op_command::is_end_of_file().

◆ is_expression()

bool tree_statement::is_expression ( ) const
inline

Definition at line 78 of file pt-stmt.h.

Referenced by bp_table::condition_valid(), and tree_evaluator::eval_string().

◆ is_null_statement()

bool tree_statement::is_null_statement ( ) const
inline

Definition at line 106 of file pt-stmt.h.

Referenced by base_parser::set_stmt_print_flag().

◆ leading_comments()

comment_list tree_statement::leading_comments ( ) const
virtual

◆ line()

int tree_statement::line ( ) const
virtual

◆ print_result()

bool tree_statement::print_result ( )

Definition at line 70 of file pt-stmt.cc.

References tree_expression::print_result().

Referenced by tree_print_code::visit_statement().

◆ set_breakpoint()

void tree_statement::set_breakpoint ( const std::string &  condition)
virtual

Reimplemented from tree.

Definition at line 76 of file pt-stmt.cc.

References tree::set_breakpoint().

◆ set_command()

void tree_statement::set_command ( tree_command c)
inline

Definition at line 119 of file pt-stmt.h.

◆ set_expression()

void tree_statement::set_expression ( tree_expression e)
inline

Definition at line 121 of file pt-stmt.h.

Referenced by base_parser::make_try_command().

◆ set_print_flag()

void tree_statement::set_print_flag ( bool  print_flag)

Definition at line 63 of file pt-stmt.cc.

References tree_expression::set_print_flag().

Referenced by base_parser::set_stmt_print_flag().

◆ update_end_pos()

void tree_statement::update_end_pos ( const filepos pos)
virtual

Definition at line 130 of file pt-stmt.cc.

References error(), and tree_command::update_end_pos().


The documentation for this class was generated from the following files: