GNU Octave
3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include "pt-check.h"
Private Member Functions | |
tree_checker (const tree_checker &) | |
void | do_decl_command (tree_decl_command &) |
void | gripe (const std::string &msg, int line) |
tree_checker & | operator= (const tree_checker &) |
Private Attributes | |
bool | do_lvalue_check |
std::string | file_name |
Definition at line 32 of file pt-check.h.
|
inline |
Definition at line 37 of file pt-check.h.
|
inline |
Definition at line 40 of file pt-check.h.
|
private |
|
private |
Definition at line 93 of file pt-check.cc.
References tree_decl_init_list::accept(), and tree_decl_command::initializer_list().
Referenced by visit_global_command(), and visit_persistent_command().
Definition at line 563 of file pt-check.cc.
References error(), and file_name.
Referenced by visit_argument_list(), visit_complex_for_command(), visit_simple_assignment(), visit_simple_for_command(), and visit_try_catch_command().
|
private |
|
virtual |
Implements tree_walker.
Definition at line 345 of file pt-check.cc.
|
virtual |
Implements tree_walker.
Definition at line 33 of file pt-check.cc.
References octave_base_list< elt_type >::begin(), do_lvalue_check, octave_base_list< elt_type >::end(), gripe(), tree::line(), and tree_expression::lvalue_ok().
|
virtual |
Implements tree_walker.
Definition at line 50 of file pt-check.cc.
References tree::accept(), tree_binary_expression::lhs(), and tree_binary_expression::rhs().
|
virtual |
Implements tree_walker.
Definition at line 64 of file pt-check.cc.
Implements tree_walker.
Definition at line 306 of file pt-check.cc.
References tree_argument_list::accept(), octave_base_list< elt_type >::begin(), and octave_base_list< elt_type >::end().
|
virtual |
Implements tree_walker.
Definition at line 69 of file pt-check.cc.
References tree::accept(), tree_colon_expression::base(), tree_colon_expression::increment(), and tree_colon_expression::limit().
|
virtual |
Implements tree_walker.
Definition at line 169 of file pt-check.cc.
References tree::accept(), tree_argument_list::accept(), tree_statement_list::accept(), tree_complex_for_command::body(), tree_complex_for_command::control_expr(), do_lvalue_check, gripe(), tree_complex_for_command::left_hand_side(), octave_base_list< elt_type >::length(), and tree::line().
|
virtual |
Implements tree_walker.
Definition at line 350 of file pt-check.cc.
|
virtual |
Implements tree_walker.
Definition at line 88 of file pt-check.cc.
|
virtual |
Implements tree_walker.
Definition at line 114 of file pt-check.cc.
References tree::accept(), tree_identifier::accept(), tree_decl_elt::expression(), and tree_decl_elt::ident().
|
virtual |
Implements tree_walker.
Definition at line 128 of file pt-check.cc.
References tree_decl_elt::accept(), octave_base_list< elt_type >::begin(), and octave_base_list< elt_type >::end().
|
virtual |
Implements tree_walker.
Definition at line 549 of file pt-check.cc.
References tree::accept(), tree_statement_list::accept(), tree_while_command::body(), and tree_while_command::condition().
|
virtual |
Implements tree_walker.
Definition at line 355 of file pt-check.cc.
|
virtual |
Implements tree_walker.
Definition at line 218 of file pt-check.cc.
References octave_function::accept(), f, tree_function_def::function(), and octave_value::function_value().
|
virtual |
|
virtual |
Implements tree_walker.
Definition at line 229 of file pt-check.cc.
|
virtual |
Implements tree_walker.
Definition at line 234 of file pt-check.cc.
References tree::accept(), tree_statement_list::accept(), tree_if_clause::commands(), and tree_if_clause::condition().
|
virtual |
Implements tree_walker.
Definition at line 248 of file pt-check.cc.
References tree_if_command_list::accept(), and tree_if_command::cmd_list().
|
virtual |
Implements tree_walker.
Definition at line 257 of file pt-check.cc.
References tree_if_clause::accept(), octave_base_list< elt_type >::begin(), and octave_base_list< elt_type >::end().
|
virtual |
Implements tree_walker.
Definition at line 271 of file pt-check.cc.
References tree::accept(), tree_argument_list::accept(), tree_index_expression::arg_lists(), and tree_index_expression::expression().
|
virtual |
Implements tree_walker.
Definition at line 292 of file pt-check.cc.
References tree_argument_list::accept(), octave_base_list< elt_type >::begin(), and octave_base_list< elt_type >::end().
|
virtual |
Implements tree_walker.
Definition at line 320 of file pt-check.cc.
References tree::accept(), tree_argument_list::accept(), do_lvalue_check, tree_multi_assignment::left_hand_side(), and tree_multi_assignment::right_hand_side().
|
virtual |
Implements tree_walker.
Definition at line 340 of file pt-check.cc.
|
virtual |
Implements tree_walker.
Definition at line 209 of file pt-check.cc.
References tree_statement_list::accept(), and octave_user_function::body().
|
virtual |
Implements tree_walker.
Definition at line 200 of file pt-check.cc.
References tree_statement_list::accept(), and octave_user_script::body().
|
virtual |
Implements tree_walker.
Definition at line 360 of file pt-check.cc.
References tree_decl_elt::accept(), octave_base_list< elt_type >::begin(), and octave_base_list< elt_type >::end().
|
virtual |
|
virtual |
Implements tree_walker.
Definition at line 374 of file pt-check.cc.
References tree::accept(), and tree_unary_expression::operand().
|
virtual |
Implements tree_walker.
Definition at line 383 of file pt-check.cc.
References tree::accept(), and tree_unary_expression::operand().
|
virtual |
Implements tree_walker.
Definition at line 392 of file pt-check.cc.
|
virtual |
Implements tree_walker.
Definition at line 397 of file pt-check.cc.
References tree_index_expression::accept(), octave_base_list< elt_type >::begin(), and octave_base_list< elt_type >::end().
|
virtual |
Implements tree_walker.
Definition at line 411 of file pt-check.cc.
References tree::accept(), gripe(), tree_simple_assignment::left_hand_side(), tree::line(), tree_expression::lvalue_ok(), and tree_simple_assignment::right_hand_side().
|
virtual |
Implements tree_walker.
Definition at line 142 of file pt-check.cc.
References tree::accept(), tree_statement_list::accept(), tree_simple_for_command::body(), tree_simple_for_command::control_expr(), gripe(), tree_simple_for_command::left_hand_side(), tree::line(), tree_expression::lvalue_ok(), and tree_simple_for_command::maxproc_expr().
|
virtual |
Implements tree_walker.
Definition at line 428 of file pt-check.cc.
References tree::accept(), tree_statement::command(), and tree_statement::expression().
|
virtual |
Implements tree_walker.
Definition at line 444 of file pt-check.cc.
References tree_statement::accept(), octave_base_list< elt_type >::begin(), and octave_base_list< elt_type >::end().
|
virtual |
Implements tree_walker.
Definition at line 456 of file pt-check.cc.
References tree::accept(), tree_statement_list::accept(), tree_switch_case::case_label(), and tree_switch_case::commands().
|
virtual |
Implements tree_walker.
Definition at line 470 of file pt-check.cc.
References tree_switch_case::accept(), octave_base_list< elt_type >::begin(), and octave_base_list< elt_type >::end().
|
virtual |
Implements tree_walker.
Definition at line 484 of file pt-check.cc.
References tree::accept(), tree_switch_case_list::accept(), tree_switch_command::case_list(), and tree_switch_command::switch_value().
|
virtual |
Implements tree_walker.
Definition at line 498 of file pt-check.cc.
References tree_statement_list::accept(), tree_try_catch_command::body(), tree_try_catch_command::cleanup(), gripe(), tree_try_catch_command::identifier(), tree::line(), and tree_identifier::lvalue_ok().
|
virtual |
Implements tree_walker.
Definition at line 521 of file pt-check.cc.
References tree_statement_list::accept(), tree_unwind_protect_command::body(), and tree_unwind_protect_command::cleanup().
|
virtual |
Implements tree_walker.
Definition at line 535 of file pt-check.cc.
References tree::accept(), tree_statement_list::accept(), tree_while_command::body(), and tree_while_command::condition().
|
private |
Definition at line 126 of file pt-check.h.
Referenced by visit_argument_list(), visit_complex_for_command(), and visit_multi_assignment().
|
private |
Definition at line 128 of file pt-check.h.
Referenced by gripe().