GNU Octave
3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include "pt-stmt.h"
Public Member Functions | |
tree_statement (void) | |
tree_statement (tree_command *c, octave_comment_list *cl) | |
tree_statement (tree_expression *e, octave_comment_list *cl) | |
~tree_statement (void) | |
void | accept (tree_walker &tw) |
void | column (int c) |
int | column (void) const |
tree_command * | command (void) |
octave_comment_list * | comment_text (void) |
void | delete_breakpoint (void) |
tree_statement * | dup (symbol_table::scope_id scope, symbol_table::context_id context) const |
void | echo_code (void) |
tree_expression * | expression (void) |
bool | is_breakpoint (void) const |
bool | is_command (void) const |
bool | is_end_of_fcn_or_script (void) const |
bool | is_end_of_file (void) const |
bool | is_expression (void) const |
bool | is_null_statement (void) const |
void | line (int l) |
int | line (void) const |
bool | print_result (void) |
void | set_breakpoint (void) |
void | set_command (tree_command *c) |
void | set_expression (tree_expression *e) |
void | set_location (int l, int c) |
void | set_print_flag (bool print_flag) |
std::string | str_print_code (void) |
Private Member Functions | |
tree_statement (const tree_statement &) | |
tree_statement & | operator= (const tree_statement &) |
Private Attributes | |
tree_command * | cmd |
octave_comment_list * | comm |
tree_expression * | expr |
|
inline |
|
inline |
|
inline |
tree_statement::~tree_statement | ( | void | ) |
Definition at line 53 of file pt-stmt.cc.
|
private |
|
virtual |
Implements tree.
Definition at line 176 of file pt-stmt.cc.
References tree_walker::visit_statement().
Referenced by echo_code(), tree_checker::visit_statement_list(), tree_evaluator::visit_statement_list(), tree_breakpoint::visit_statement_list(), tree_print_code::visit_statement_list(), and jit_convert::visit_statement_list().
Reimplemented from tree.
Definition at line 104 of file pt-stmt.cc.
References cmd, tree::column(), and expr.
Referenced by octave_user_function::maybe_relocate_end_internal(), and tree_evaluator::visit_statement().
|
inline |
Definition at line 81 of file pt-stmt.h.
Referenced by tree_checker::visit_statement(), tree_evaluator::visit_statement(), tree_breakpoint::visit_statement(), tree_print_code::visit_statement(), and jit_convert::visit_statement().
|
inline |
Definition at line 85 of file pt-stmt.h.
Referenced by tree_print_code::visit_statement().
Reimplemented from tree.
Definition at line 83 of file pt-stmt.cc.
References cmd, tree::delete_breakpoint(), and expr.
Referenced by tree_breakpoint::take_action().
tree_statement * tree_statement::dup | ( | symbol_table::scope_id | scope, |
symbol_table::context_id | context | ||
) | const |
Definition at line 161 of file pt-stmt.cc.
References cmd, comm, tree_command::dup(), tree_expression::dup(), octave_comment_list::dup(), expr, and tree_statement().
Referenced by tree_statement_list::dup().
Definition at line 119 of file pt-stmt.cc.
References accept(), octave_stdout, and VPS4.
Referenced by tree_evaluator::visit_statement().
|
inline |
Definition at line 83 of file pt-stmt.h.
Referenced by octave_fcn_binder::maybe_binder(), octave_user_function::special_expr(), tree_checker::visit_statement(), tree_evaluator::visit_statement(), tree_print_code::visit_statement(), and jit_convert::visit_statement().
Reimplemented from tree.
Definition at line 92 of file pt-stmt.cc.
References cmd, expr, and tree::is_breakpoint().
Referenced by tree_evaluator::do_breakpoint(), and tree_breakpoint::take_action().
Definition at line 64 of file pt-stmt.h.
Referenced by tree_breakpoint::visit_statement().
Definition at line 127 of file pt-stmt.cc.
References cmd, and tree_no_op_command::is_end_of_fcn_or_script().
Referenced by tree_evaluator::do_breakpoint(), and octave_user_function::maybe_relocate_end_internal().
Definition at line 144 of file pt-stmt.cc.
References cmd, and tree_no_op_command::is_end_of_file().
Referenced by octave_user_function::maybe_relocate_end_internal().
Reimplemented from tree.
Definition at line 98 of file pt-stmt.cc.
References cmd, expr, and tree::line().
Referenced by octave_user_function::maybe_relocate_end_internal(), tree_breakpoint::take_action(), tree_evaluator::visit_statement(), and tree_breakpoint::visit_statement().
|
private |
Definition at line 68 of file pt-stmt.cc.
References expr, and tree_expression::print_result().
Referenced by tree_print_code::visit_statement().
Reimplemented from tree.
Definition at line 74 of file pt-stmt.cc.
References cmd, expr, and tree::set_breakpoint().
Referenced by tree_breakpoint::take_action().
|
inline |
|
inline |
Reimplemented from tree.
Definition at line 110 of file pt-stmt.cc.
References cmd, expr, and tree::set_location().
Referenced by octave_user_function::maybe_relocate_end_internal().
Definition at line 61 of file pt-stmt.cc.
References expr, and tree_expression::set_print_flag().
|
inherited |
Definition at line 39 of file pt.cc.
References tree::accept().
Referenced by jit_info::compile(), and tree_argument_list::get_arg_names().
|
private |
Definition at line 111 of file pt-stmt.h.
Referenced by column(), delete_breakpoint(), dup(), is_breakpoint(), is_end_of_fcn_or_script(), is_end_of_file(), line(), set_breakpoint(), set_location(), and ~tree_statement().
|
private |
Definition at line 117 of file pt-stmt.h.
Referenced by dup(), and ~tree_statement().
|
private |
Definition at line 114 of file pt-stmt.h.
Referenced by column(), delete_breakpoint(), dup(), is_breakpoint(), line(), print_result(), set_breakpoint(), set_location(), set_print_flag(), and ~tree_statement().