#include "parse.h"
Protected Attributes | |
bool | m_autoloading |
std::shared_ptr< tree_classdef > | m_classdef_object |
std::string | m_curr_class_name |
int | m_curr_fcn_depth |
std::string | m_curr_package_name |
bool | m_endfunction_found |
bool | m_fcn_file_from_relative_lookup |
parent_scope_info | m_function_scopes |
base_lexer & | m_lexer |
int | m_max_fcn_depth |
std::string | m_parse_error_msg |
void * | m_parser_state |
bool | m_parsing_local_functions |
bool | m_parsing_subfunctions |
octave_value | m_primary_fcn |
symbol_scope | m_primary_fcn_scope |
std::shared_ptr< tree_statement_list > | m_stmt_list |
std::list< std::string > | m_subfunction_names |
Private Member Functions | |
OCTINTERP_API void | maybe_warn_assign_as_truth_value (tree_expression *expr) |
OCTINTERP_API void | maybe_warn_missing_semi (tree_statement_list *) |
OCTINTERP_API void | maybe_warn_variable_switch_label (tree_expression *expr) |
Private Attributes | |
interpreter & | m_interpreter |
std::shared_ptr< input_reader > | m_reader |
|
inline |
|
inline |
|
delete |
|
default |
|
inherited |
Definition at line 8371 of file oct-parse.cc.
References list_append().
Referenced by octave_push_parse().
|
inherited |
Definition at line 9541 of file oct-parse.cc.
References list_append().
Referenced by octave_push_parse().
|
inherited |
Definition at line 9423 of file oct-parse.cc.
References list_append(), and base_parser::make_cell().
Referenced by octave_push_parse().
|
inherited |
Definition at line 8781 of file oct-parse.cc.
References list_append().
Referenced by octave_push_parse().
|
inherited |
Definition at line 8734 of file oct-parse.cc.
References list_append().
Referenced by octave_push_parse().
|
inherited |
Definition at line 8833 of file oct-parse.cc.
References list_append().
Referenced by octave_push_parse().
|
inherited |
Definition at line 8727 of file oct-parse.cc.
References list_append().
Referenced by octave_push_parse().
|
inherited |
Definition at line 8826 of file oct-parse.cc.
References list_append().
Referenced by octave_push_parse().
|
inherited |
Definition at line 8921 of file oct-parse.cc.
References tree_function_def::function(), and list_append().
Referenced by octave_push_parse().
|
inherited |
Definition at line 8819 of file oct-parse.cc.
References list_append().
Referenced by octave_push_parse().
|
inherited |
Definition at line 8812 of file oct-parse.cc.
References list_append().
Referenced by octave_push_parse().
|
inherited |
Definition at line 8720 of file oct-parse.cc.
References list_append().
Referenced by octave_push_parse().
|
inherited |
Definition at line 8753 of file oct-parse.cc.
References list_append().
Referenced by octave_push_parse().
|
inherited |
Definition at line 9150 of file oct-parse.cc.
References list_append().
Referenced by octave_push_parse().
|
inherited |
Definition at line 8297 of file oct-parse.cc.
References list_append().
Referenced by octave_push_parse().
|
inherited |
Definition at line 7746 of file oct-parse.cc.
References list_append().
Referenced by octave_push_parse().
|
inherited |
Definition at line 9396 of file oct-parse.cc.
References list_append(), and base_parser::make_matrix().
Referenced by octave_push_parse().
|
inherited |
Definition at line 9568 of file oct-parse.cc.
References list_append().
Referenced by octave_push_parse().
|
inherited |
Definition at line 9575 of file oct-parse.cc.
References list_append().
|
inherited |
Definition at line 9525 of file oct-parse.cc.
References list_append(), and base_parser::set_stmt_print_flag().
Referenced by octave_push_parse().
|
inherited |
Definition at line 7827 of file oct-parse.cc.
References list_append().
Referenced by octave_push_parse().
|
inlineinherited |
Definition at line 178 of file parse.h.
Referenced by tree_evaluator::eval_string().
|
inherited |
Definition at line 9686 of file oct-parse.cc.
References base_parser::bison_error(), parse_exception::column(), parse_exception::line(), and parse_exception::message().
|
inherited |
Definition at line 9692 of file oct-parse.cc.
References base_parser::bison_error(), parse_exception::column(), parse_exception::line(), and parse_exception::message().
|
inherited |
Definition at line 9616 of file oct-parse.cc.
References lexical_feedback::m_filepos, and base_parser::m_lexer.
Referenced by base_parser::bison_error(), base_parser::end_token_error(), base_parser::finish_classdef_file(), base_parser::finish_input(), base_parser::make_anon_fcn_handle(), base_parser::make_assign_op(), base_parser::make_break_command(), base_parser::make_classdef(), base_parser::make_continue_command(), base_parser::make_fcn_name(), base_parser::make_for_command(), base_parser::make_index_expression(), octave_error(), octave_push_parse(), base_parser::push_fcn_symtab(), base_parser::start_classdef_external_method(), base_parser::validate_array_list(), base_parser::validate_matrix_for_assignment(), base_parser::validate_param_list(), and base_parser::validate_primary_fcn().
|
inherited |
Definition at line 9622 of file oct-parse.cc.
References base_parser::bison_error(), filepos::column(), and filepos::line().
|
inherited |
Definition at line 9628 of file oct-parse.cc.
References get_file_line(), len, lexical_feedback::m_current_input_line, lexical_feedback::m_fcn_file_full_name, base_parser::m_lexer, base_parser::m_parse_error_msg, lexical_feedback::m_reading_classdef_file, lexical_feedback::m_reading_fcn_file, and lexical_feedback::m_reading_script_file.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inherited |
Definition at line 9582 of file oct-parse.cc.
References lexical_feedback::m_allow_command_syntax, and base_parser::m_lexer.
Referenced by tree_evaluator::eval_string().
|
inherited |
Definition at line 6869 of file oct-parse.cc.
References token::beg_pos(), base_parser::bison_error(), end_token_as_string(), and token::ettype().
Referenced by base_parser::finish_if_command(), base_parser::finish_switch_command(), base_parser::make_classdef(), base_parser::make_classdef_enum_block(), base_parser::make_classdef_events_block(), base_parser::make_classdef_methods_block(), base_parser::make_classdef_properties_block(), base_parser::make_for_command(), base_parser::make_spmd_command(), base_parser::make_try_command(), base_parser::make_unwind_command(), base_parser::make_while_command(), and octave_push_parse().
|
inherited |
Definition at line 6881 of file oct-parse.cc.
References token::ettype(), and token::simple_end.
Referenced by base_parser::finish_if_command(), base_parser::finish_switch_command(), base_parser::make_arguments_block(), base_parser::make_classdef(), base_parser::make_classdef_enum_block(), base_parser::make_classdef_events_block(), base_parser::make_classdef_methods_block(), base_parser::make_classdef_properties_block(), base_parser::make_for_command(), base_parser::make_spmd_command(), base_parser::make_try_command(), base_parser::make_unwind_command(), base_parser::make_while_command(), and octave_push_parse().
|
inlineinherited |
Definition at line 224 of file parse.h.
Referenced by octave_push_parse().
|
inlineinherited |
|
inherited |
Definition at line 9316 of file oct-parse.cc.
References __get_interpreter__(), tree_array_list::accept(), tree_array_list::all_elements_are_constant(), token::column(), error_system::discard_warning_messages(), tree_expression::evaluate(), interpreter::get_error_system(), interpreter::get_evaluator(), error_system::last_warning_message(), token::line(), interpreter::recover_from_exception(), error_system::set_discard_warning_messages(), error_system::set_last_warning_message(), tree::set_location(), and tree_constant::stash_original_text().
Referenced by base_parser::finish_cell(), and base_parser::finish_matrix().
|
inherited |
Definition at line 9407 of file oct-parse.cc.
References token::column(), base_parser::finish_array_list(), and token::line().
Referenced by octave_push_parse().
|
inherited |
Definition at line 8889 of file oct-parse.cc.
References octave_user_function::beginning_column(), octave_user_function::beginning_line(), octave_user_function::define_ret_list(), tree_parameter_list::out, and octave_user_function::stash_leading_comment().
Referenced by octave_push_parse().
|
inherited |
Definition at line 8937 of file oct-parse.cc.
References __get_symbol_table__(), tree_classdef::accept(), tree_function_def::accept(), base_parser::bison_error(), parse_tree_validator::error_list(), octave_user_code::fcn_file_name(), tree_function_def::function(), symbol_table::install_local_function(), base_parser::m_classdef_object, base_parser::m_lexer, lexical_feedback::m_reading_classdef_file, octave_function::name(), parse_tree_validator::ok(), and octave_value::user_function_value().
Referenced by octave_push_parse().
|
inherited |
Definition at line 8202 of file oct-parse.cc.
References symbol_scope::cache_dir_name(), symbol_scope::cache_fcn_file_name(), symbol_scope::cache_fcn_name(), octave_user_code::cache_function_text(), symbol_scope::cache_name(), octave_user_function::define_ret_list(), octave_user_code::fcn_file_name(), symbol_scope::install_nestfunction(), symbol_scope::install_subfunction(), lexical_feedback::m_buffer_function_text, base_parser::m_curr_fcn_depth, lexical_feedback::m_dir_name, base_parser::m_endfunction_found, base_parser::m_function_scopes, lexical_feedback::m_function_text, base_parser::m_lexer, base_parser::m_parsing_subfunctions, base_parser::m_primary_fcn_scope, lexical_feedback::m_reading_fcn_file, base_parser::m_subfunction_names, tree_parameter_list::mark_as_formal_parameters(), octave_user_function::mark_as_nested_function(), octave_user_function::mark_as_subfunction(), octave_function::name(), tree_parameter_list::out, base_parser::parent_scope_info::parent_scope(), octave_user_code::scope(), symbol_scope::set_nesting_depth(), symbol_scope::set_parent(), symbol_scope::set_primary_parent(), base_parser::parent_scope_info::size(), octave_user_function::stash_fcn_location(), octave_user_function::stash_leading_comment(), octave_user_code::time_parsed(), and symbol_scope::update_nest().
Referenced by base_parser::make_function().
|
inherited |
Definition at line 7682 of file oct-parse.cc.
References tree::column(), token::column(), base_list< elt_type >::empty(), base_parser::end_token_error(), base_parser::end_token_ok(), base_list< elt_type >::front(), base_lexer::comment_buffer::get_comment(), token::if_end, tree::line(), token::line(), base_lexer::m_comment_buf, and base_parser::m_lexer.
Referenced by octave_push_parse().
|
inherited |
Definition at line 9959 of file oct-parse.cc.
References tree_statement_list::accept(), base_parser::bison_error(), parse_tree_validator::error_list(), lexical_feedback::m_end_of_input, base_parser::m_lexer, parse_tree_validator::ok(), and base_parser::statement_list().
Referenced by octave_push_parse().
|
inherited |
Definition at line 9380 of file oct-parse.cc.
References token::column(), base_parser::finish_array_list(), octave_null_matrix::instance, token::line(), and m.
Referenced by octave_push_parse().
|
inherited |
Definition at line 7755 of file oct-parse.cc.
References tree::column(), token::column(), base_list< elt_type >::empty(), base_parser::end_token_error(), base_parser::end_token_ok(), base_list< elt_type >::front(), base_lexer::comment_buffer::get_comment(), tree::line(), token::line(), base_lexer::m_comment_buf, base_parser::m_lexer, and token::switch_end.
Referenced by octave_push_parse().
|
inherited |
|
inlineinherited |
|
inherited |
Definition at line 7002 of file oct-parse.cc.
References tree_anon_fcn_handle::accept(), base_parser::bison_error(), symbol_scope::cache_name(), filepos::column(), anon_fcn_validator::column(), lexical_feedback::symbol_table_context::curr_scope(), base_lexer::input_from_eval_string(), base_lexer::input_from_terminal(), filepos::line(), anon_fcn_validator::line(), lexical_feedback::m_fcn_file_full_name, base_parser::m_lexer, lexical_feedback::m_symtab_context, symbol_scope::mark_static(), anon_fcn_validator::message(), anon_fcn_validator::ok(), lexical_feedback::symbol_table_context::parent_scope(), lexical_feedback::symbol_table_context::pop(), and tree_expression::set_print_flag().
Referenced by octave_push_parse().
|
inherited |
Definition at line 8378 of file oct-parse.cc.
Referenced by octave_push_parse().
|
inherited |
Definition at line 8343 of file oct-parse.cc.
Referenced by octave_push_parse().
|
inherited |
Definition at line 8386 of file oct-parse.cc.
Referenced by octave_push_parse().
|
inherited |
Definition at line 8356 of file oct-parse.cc.
Referenced by octave_push_parse().
|
inherited |
Definition at line 8365 of file oct-parse.cc.
Referenced by octave_push_parse().
|
inherited |
Definition at line 9535 of file oct-parse.cc.
Referenced by octave_push_parse().
|
inherited |
Definition at line 8313 of file oct-parse.cc.
References token::arguments_end, token::beg_pos(), filepos::column(), base_parser::end_token_ok(), and filepos::line().
Referenced by octave_push_parse().
|
inherited |
Definition at line 7836 of file oct-parse.cc.
References ADD_EQ, AND_EQ, token::beg_pos(), base_parser::bison_error(), token::column(), DIV_EQ, EDIV_EQ, ELEFTDIV_EQ, EMUL_EQ, EPOW_EQ, tree_expression::is_identifier(), tree_expression::is_index_expression(), tree_argument_list::is_simple_assign_lhs(), iskeyword(), LEFTDIV_EQ, token::line(), base_parser::m_lexer, lexical_feedback::mark_as_variable(), lexical_feedback::mark_as_variables(), MUL_EQ, tree_expression::name(), octave_value::op_add_eq, octave_value::op_asn_eq, octave_value::op_div_eq, octave_value::op_el_and_eq, octave_value::op_el_div_eq, octave_value::op_el_ldiv_eq, octave_value::op_el_mul_eq, octave_value::op_el_or_eq, octave_value::op_el_pow_eq, octave_value::op_ldiv_eq, octave_value::op_mul_eq, octave_value::op_pow_eq, octave_value::op_sub_eq, OR_EQ, panic_impossible, POW_EQ, tree_argument_list::remove_front(), SUB_EQ, octave_value::unknown_assign_op, and tree_argument_list::variable_names().
Referenced by octave_push_parse().
|
inherited |
Definition at line 7148 of file oct-parse.cc.
References token::column(), EDIV, ELEFTDIV, EMUL, EPOW, EXPR_AND, EXPR_EQ, EXPR_GE, EXPR_GT, EXPR_LE, EXPR_LT, EXPR_NE, EXPR_OR, LEFTDIV, token::line(), maybe_compound_binary_expression(), octave_value::op_add, octave_value::op_div, octave_value::op_el_and, octave_value::op_el_div, octave_value::op_el_ldiv, octave_value::op_el_mul, octave_value::op_el_or, octave_value::op_el_pow, octave_value::op_eq, octave_value::op_ge, octave_value::op_gt, octave_value::op_ldiv, octave_value::op_le, octave_value::op_lt, octave_value::op_mul, octave_value::op_ne, octave_value::op_pow, octave_value::op_sub, panic_impossible, POW, and octave_value::unknown_binary_op.
Referenced by octave_push_parse().
|
inherited |
Definition at line 6981 of file oct-parse.cc.
Referenced by octave_push_parse().
|
inherited |
Definition at line 7276 of file oct-parse.cc.
References tree_boolean_expression::bool_and, tree_boolean_expression::bool_or, token::column(), EXPR_AND_AND, EXPR_OR_OR, token::line(), and panic_impossible.
Referenced by octave_push_parse().
|
inherited |
Definition at line 7594 of file oct-parse.cc.
References base_parser::bison_error(), token::column(), token::line(), base_parser::m_lexer, and lexical_feedback::m_looping.
Referenced by octave_push_parse().
|
inherited |
Definition at line 9417 of file oct-parse.cc.
Referenced by base_parser::append_cell_row(), and octave_push_parse().
|
inherited |
Definition at line 8422 of file oct-parse.cc.
References base_parser::bison_error(), token::classdef_end, token::column(), lexical_feedback::symbol_table_context::curr_scope(), dir_sep_chars, base_parser::end_token_error(), base_parser::end_token_ok(), token::line(), base_parser::m_curr_package_name, lexical_feedback::m_fcn_file_full_name, lexical_feedback::m_fcn_file_name, base_parser::m_lexer, lexical_feedback::m_symtab_context, lexical_feedback::symbol_table_context::pop(), and token::switch_end.
Referenced by octave_push_parse().
|
inherited |
Definition at line 8766 of file oct-parse.cc.
Referenced by octave_push_parse().
|
inherited |
Definition at line 8760 of file oct-parse.cc.
Referenced by octave_push_parse().
|
inherited |
Definition at line 8806 of file oct-parse.cc.
|
inherited |
Definition at line 8800 of file oct-parse.cc.
|
inherited |
Definition at line 8794 of file oct-parse.cc.
|
inherited |
Definition at line 8788 of file oct-parse.cc.
Referenced by octave_push_parse().
|
inherited |
Definition at line 8713 of file oct-parse.cc.
Referenced by octave_push_parse().
|
inherited |
Definition at line 8674 of file oct-parse.cc.
References token::column(), base_parser::end_token_error(), base_parser::end_token_ok(), token::enumeration_end, and token::line().
Referenced by octave_push_parse().
|
inherited |
Definition at line 8707 of file oct-parse.cc.
Referenced by octave_push_parse().
|
inherited |
Definition at line 8658 of file oct-parse.cc.
Referenced by octave_push_parse().
|
inherited |
Definition at line 8619 of file oct-parse.cc.
References token::column(), base_parser::end_token_error(), base_parser::end_token_ok(), token::events_end, and token::line().
Referenced by octave_push_parse().
|
inherited |
Definition at line 8652 of file oct-parse.cc.
Referenced by octave_push_parse().
|
inherited |
Definition at line 8578 of file oct-parse.cc.
References token::column(), base_parser::end_token_error(), base_parser::end_token_ok(), token::line(), and token::methods_end.
Referenced by octave_push_parse().
|
inherited |
Definition at line 8908 of file oct-parse.cc.
References tree_function_def::function().
Referenced by octave_push_parse().
|
inherited |
Definition at line 8499 of file oct-parse.cc.
References base_list< elt_type >::back(), token::column(), tree_classdef_property::doc_string(), base_parser::end_token_error(), base_parser::end_token_ok(), base_list< elt_type >::front(), tree_classdef_property::have_doc_string(), comment_elt::is_end_of_line(), token::line(), token::properties_end, and comment_elt::text().
Referenced by octave_push_parse().
|
inherited |
Definition at line 8561 of file oct-parse.cc.
References tree_arg_validation::arg_name(), tree_arg_validation::class_name(), tree_arg_validation::size_spec(), tree_arg_validation::validation_fcns(), and warning().
Referenced by octave_push_parse().
|
inherited |
Definition at line 8555 of file oct-parse.cc.
Referenced by octave_push_parse().
|
inherited |
Definition at line 8747 of file oct-parse.cc.
References token::text().
Referenced by octave_push_parse().
|
inherited |
Definition at line 8741 of file oct-parse.cc.
Referenced by octave_push_parse().
|
inherited |
Definition at line 7068 of file oct-parse.cc.
References __get_interpreter__(), tree_colon_expression::accept(), tree::column(), error_system::discard_warning_messages(), tree_colon_expression::evaluate(), interpreter::get_error_system(), interpreter::get_evaluator(), tree_expression::is_constant(), error_system::last_warning_message(), tree::line(), interpreter::recover_from_exception(), error_system::set_discard_warning_messages(), error_system::set_last_warning_message(), and tree_constant::stash_original_text().
Referenced by octave_push_parse().
|
inherited |
Definition at line 6920 of file oct-parse.cc.
References token::column(), DQ_STRING, octave_null_str::instance, octave_null_sq_str::instance, token::line(), octave_value::magic_colon_t, NUMBER, token::number(), panic_impossible, SQ_STRING, tree_constant::stash_original_text(), token::text(), token::text_rep(), token::token_value(), and undo_string_escapes().
Referenced by octave_push_parse().
|
inherited |
Definition at line 7611 of file oct-parse.cc.
References base_parser::bison_error(), token::column(), token::line(), base_parser::m_lexer, and lexical_feedback::m_looping.
Referenced by octave_push_parse().
|
inherited |
Definition at line 9099 of file oct-parse.cc.
References token::column(), GLOBAL, token::line(), base_parser::m_curr_fcn_depth, lexical_feedback::m_fcn_file_full_name, base_parser::m_lexer, lexical_feedback::m_reading_script_file, lexical_feedback::mark_as_variables(), tree_decl_command::mark_global(), tree_decl_command::mark_persistent(), panic_impossible, PERSISTENT, tree_decl_init_list::variable_names(), and warning().
Referenced by octave_push_parse().
|
inherited |
Definition at line 9157 of file oct-parse.cc.
Referenced by octave_push_parse().
|
inherited |
Definition at line 9144 of file oct-parse.cc.
Referenced by octave_push_parse().
|
inherited |
Definition at line 7817 of file oct-parse.cc.
References token::column(), and token::line().
Referenced by octave_push_parse().
|
inherited |
Definition at line 7506 of file oct-parse.cc.
References token::column(), base_lexer::comment_buffer::get_comment(), token::line(), base_lexer::m_comment_buf, base_parser::m_lexer, lexical_feedback::m_looping, and base_parser::maybe_warn_assign_as_truth_value().
Referenced by octave_push_parse().
|
inherited |
Definition at line 7736 of file oct-parse.cc.
References token::column(), and token::line().
Referenced by octave_push_parse().
|
inherited |
Definition at line 7722 of file oct-parse.cc.
References token::column(), token::line(), and base_parser::maybe_warn_assign_as_truth_value().
Referenced by octave_push_parse().
|
inherited |
Definition at line 8192 of file oct-parse.cc.
References filepos::column(), filepos::line(), and base_parser::make_statement().
Referenced by octave_push_parse().
|
inherited |
Definition at line 6989 of file oct-parse.cc.
References token::column(), token::line(), and token::text().
Referenced by octave_push_parse().
|
inherited |
Definition at line 8000 of file oct-parse.cc.
References base_parser::bison_error(), symbol_scope::cache_name(), tree::column(), lexical_feedback::symbol_table_context::curr_scope(), tree::line(), base_parser::m_curr_fcn_depth, lexical_feedback::m_fcn_file_name, base_parser::m_function_scopes, base_parser::m_lexer, lexical_feedback::m_maybe_classdef_get_set_method, lexical_feedback::m_parsed_function_name, base_parser::m_parsing_local_functions, lexical_feedback::m_symtab_context, tree_identifier::name(), and base_parser::parent_scope_info::name_current_scope().
Referenced by octave_push_parse().
|
inherited |
Definition at line 7526 of file oct-parse.cc.
References base_parser::bison_error(), token::column(), base_parser::end_token_error(), base_parser::end_token_ok(), token::for_end, base_lexer::comment_buffer::get_comment(), base_list< elt_type >::length(), token::line(), base_lexer::m_comment_buf, base_parser::m_lexer, lexical_feedback::m_looping, tree_expression::mark_as_for_cmd_expr(), lexical_feedback::mark_as_variable(), lexical_feedback::mark_as_variables(), tree_expression::name(), PARFOR, token::parfor_end, tree_argument_list::remove_front(), and tree_argument_list::variable_names().
Referenced by octave_push_parse().
|
inherited |
Definition at line 8034 of file oct-parse.cc.
References token::column(), base_parser::finish_function(), token::line(), base_parser::recover_from_parsing_function(), and base_parser::start_function().
Referenced by octave_push_parse().
|
inherited |
Definition at line 9432 of file oct-parse.cc.
References token::column(), lexical_feedback::symbol_table_context::curr_scope(), symbol_scope::insert(), token::line(), base_parser::m_lexer, lexical_feedback::m_symtab_context, and token::text().
Referenced by octave_push_parse().
|
inherited |
Definition at line 9003 of file oct-parse.cc.
References tree_index_expression::append(), base_parser::bison_error(), tree::column(), tree_argument_list::has_magic_tilde(), tree_expression::is_index_expression(), tree_expression::is_postfix_indexed(), tree::line(), and tree_expression::set_postfix_index().
Referenced by octave_push_parse().
|
inherited |
Definition at line 9041 of file oct-parse.cc.
References tree_index_expression::append(), tree::column(), tree_expression::is_index_expression(), tree_expression::is_postfix_indexed(), tree::line(), base_parser::m_lexer, lexical_feedback::m_looking_at_indirect_ref, and tree_expression::set_postfix_index().
Referenced by octave_push_parse().
|
inherited |
Definition at line 9070 of file oct-parse.cc.
References tree::column(), tree_expression::is_index_expression(), tree_expression::is_postfix_indexed(), tree::line(), list_append(), base_parser::m_lexer, lexical_feedback::m_looking_at_indirect_ref, and tree_expression::set_postfix_index().
|
inherited |
Definition at line 9390 of file oct-parse.cc.
Referenced by base_parser::append_matrix_row(), and octave_push_parse().
|
inherited |
Definition at line 9461 of file oct-parse.cc.
References token::column(), token::line(), and token::text().
Referenced by octave_push_parse().
|
inherited |
Definition at line 8775 of file oct-parse.cc.
Referenced by octave_push_parse().
|
inherited |
Definition at line 9548 of file oct-parse.cc.
Referenced by octave_push_parse().
|
inherited |
Definition at line 9554 of file oct-parse.cc.
|
inherited |
Definition at line 9561 of file oct-parse.cc.
|
inherited |
Definition at line 7346 of file oct-parse.cc.
References token::column(), HERMITIAN, token::line(), MINUS_MINUS, octave_value::op_decr, octave_value::op_hermitian, octave_value::op_incr, octave_value::op_transpose, panic_impossible, PLUS_PLUS, TRANSPOSE, and octave_value::unknown_unary_op.
Referenced by octave_push_parse().
|
inherited |
Definition at line 7305 of file oct-parse.cc.
References token::column(), token::line(), MINUS_MINUS, octave_value::op_decr, octave_value::op_incr, octave_value::op_not, octave_value::op_uminus, octave_value::op_uplus, panic_impossible, PLUS_PLUS, and octave_value::unknown_unary_op.
Referenced by octave_push_parse().
|
inherited |
Definition at line 7628 of file oct-parse.cc.
References token::column(), and token::line().
Referenced by octave_push_parse().
|
inherited |
Definition at line 7969 of file oct-parse.cc.
References base_list< elt_type >::append(), symbol_scope::cache_dir_name(), symbol_scope::cache_fcn_file_name(), symbol_scope::cache_name(), lexical_feedback::symbol_table_context::curr_scope(), lexical_feedback::m_dir_name, lexical_feedback::m_fcn_file_full_name, lexical_feedback::m_fcn_file_name, lexical_feedback::m_help_text, base_parser::m_lexer, base_parser::m_primary_fcn, lexical_feedback::m_symtab_context, octave_value(), lexical_feedback::symbol_table_context::pop(), octave_function::stash_dir_name(), and octave_user_code::stash_fcn_file_time().
Referenced by octave_push_parse().
|
inherited |
Definition at line 7639 of file oct-parse.cc.
References token::column(), base_parser::end_token_error(), base_parser::end_token_ok(), token::line(), and token::spmd_end.
Referenced by octave_push_parse().
|
inherited |
Definition at line 9511 of file oct-parse.cc.
References base_lexer::get_comment(), and base_parser::m_lexer.
|
inherited |
Referenced by base_parser::make_end(), and octave_push_parse().
|
inherited |
Definition at line 9519 of file oct-parse.cc.
Referenced by octave_push_parse().
|
inherited |
Definition at line 9449 of file oct-parse.cc.
References token::column(), token::line(), token::superclass_class_name(), and token::superclass_method_name().
Referenced by octave_push_parse().
|
inherited |
Definition at line 7803 of file oct-parse.cc.
References token::column(), token::line(), and base_parser::maybe_warn_variable_switch_label().
Referenced by octave_push_parse().
|
inherited |
Definition at line 7795 of file oct-parse.cc.
Referenced by octave_push_parse().
|
inherited |
Definition at line 7415 of file oct-parse.cc.
References token::column(), base_list< elt_type >::empty(), base_parser::end_token_error(), base_parser::end_token_ok(), tree_statement::expression(), base_list< elt_type >::front(), base_lexer::comment_buffer::get_comment(), tree_expression::is_identifier(), token::line(), base_lexer::m_comment_buf, base_parser::m_lexer, base_list< elt_type >::pop_front(), tree_statement::set_expression(), and token::try_catch_end.
Referenced by octave_push_parse().
|
inherited |
Definition at line 7382 of file oct-parse.cc.
References token::column(), base_parser::end_token_error(), base_parser::end_token_ok(), base_lexer::comment_buffer::get_comment(), token::line(), base_lexer::m_comment_buf, base_parser::m_lexer, and token::unwind_protect_end.
Referenced by octave_push_parse().
|
inherited |
Definition at line 7471 of file oct-parse.cc.
References token::column(), base_parser::end_token_error(), base_parser::end_token_ok(), base_lexer::comment_buffer::get_comment(), token::line(), base_lexer::m_comment_buf, base_parser::m_lexer, lexical_feedback::m_looping, base_parser::maybe_warn_assign_as_truth_value(), and token::while_end.
Referenced by octave_push_parse().
|
inherited |
Definition at line 7239 of file oct-parse.cc.
References tree::column(), tree_expression::is_binary_expression(), tree_binary_expression::lhs(), tree::line(), octave_value::op_el_and, octave_value::op_el_or, tree_binary_expression::op_type(), tree_binary_expression::preserve_operands(), and tree_binary_expression::rhs().
Referenced by octave_push_parse().
|
privateinherited |
Definition at line 10013 of file oct-parse.cc.
References tree::column(), tree_expression::is_assignment_expression(), tree::line(), lexical_feedback::m_fcn_file_full_name, base_parser::m_lexer, tree_expression::paren_count(), and warning_with_id().
Referenced by base_parser::make_do_until_command(), base_parser::make_elseif_clause(), base_parser::make_while_command(), and base_parser::start_if_command().
|
privateinherited |
Definition at line 10049 of file oct-parse.cc.
References base_list< elt_type >::back(), tree_statement::column(), tree_statement::is_expression(), tree_statement::line(), base_parser::m_curr_fcn_depth, lexical_feedback::m_fcn_file_full_name, base_parser::m_lexer, and warning_with_id().
Referenced by base_parser::set_stmt_print_flag().
|
privateinherited |
Definition at line 10033 of file oct-parse.cc.
References tree::column(), tree_expression::is_constant(), tree::line(), lexical_feedback::m_fcn_file_full_name, base_parser::m_lexer, and warning_with_id().
Referenced by base_parser::make_switch_case().
|
delete |
|
inlineinherited |
Definition at line 209 of file parse.h.
Referenced by octave_push_parse().
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inherited |
Definition at line 6889 of file oct-parse.cc.
References base_parser::bison_error(), lexical_feedback::symbol_table_context::curr_scope(), base_parser::m_curr_fcn_depth, base_parser::m_function_scopes, base_parser::m_lexer, base_parser::m_max_fcn_depth, base_parser::m_parsing_subfunctions, base_parser::m_primary_fcn_scope, lexical_feedback::m_reading_script_file, lexical_feedback::m_symtab_context, symbol_scope::mark_primary_fcn_scope(), lexical_feedback::symbol_table_context::push(), and base_parser::parent_scope_info::push().
Referenced by octave_push_parse().
|
inherited |
Definition at line 8394 of file oct-parse.cc.
References base_parser::m_curr_fcn_depth, lexical_feedback::m_defining_fcn, base_parser::m_function_scopes, base_parser::m_lexer, lexical_feedback::m_looking_at_parameter_list, lexical_feedback::m_looking_at_return_list, lexical_feedback::m_parsed_function_name, base_parser::m_parsing_subfunctions, lexical_feedback::m_reading_fcn_file, lexical_feedback::m_symtab_context, lexical_feedback::symbol_table_context::pop(), and base_parser::parent_scope_info::pop().
Referenced by base_parser::make_function().
|
inherited |
Definition at line 6747 of file oct-parse.cc.
References base_parser::parent_scope_info::clear(), base_parser::m_autoloading, base_parser::m_classdef_object, base_parser::m_curr_class_name, base_parser::m_curr_fcn_depth, base_parser::m_curr_package_name, base_parser::m_endfunction_found, base_parser::m_fcn_file_from_relative_lookup, base_parser::m_function_scopes, base_parser::m_lexer, base_parser::m_max_fcn_depth, base_parser::m_parser_state, base_parser::m_parsing_local_functions, base_parser::m_parsing_subfunctions, base_parser::m_primary_fcn, base_parser::m_primary_fcn_scope, base_parser::m_stmt_list, base_parser::m_subfunction_names, octave_value(), base_lexer::reset(), yypstate, yypstate_delete, and yypstate_new.
Referenced by bp_table::condition_valid(), tree_evaluator::eval_string(), text_parser::parse(), and debugger::repl().
int push_parser::run | ( | const std::string & | input, |
bool | eof | ||
) |
Definition at line 9751 of file oct-parse.cc.
References base_lexer::at_end_of_buffer(), error(), input(), lexical_feedback::m_fcn_file_full_name, base_parser::m_lexer, base_parser::m_parse_error_msg, base_parser::m_parser_state, base_lexer::m_scanner, octave_lex(), octave_push_parse(), parse_error(), yypstate, YYPUSH_MORE, and YYSTYPE.
|
virtual |
Implements base_parser.
Definition at line 9820 of file oct-parse.cc.
References command_editor::decode_prompt_string(), error(), interpreter::get_input_system(), m_interpreter, m_reader, input_system::PS1(), and input_system::PS2().
Referenced by debugger::repl().
|
inherited |
Definition at line 9472 of file oct-parse.cc.
References base_list< elt_type >::back(), tree_statement::is_null_statement(), base_parser::maybe_warn_missing_semi(), base_list< elt_type >::pop_back(), tree_statement::set_print_flag(), and warning().
Referenced by base_parser::append_statement_list(), and octave_push_parse().
|
inherited |
Definition at line 8840 of file oct-parse.cc.
References base_parser::bison_error(), base_parser::m_curr_class_name, octave_function::name(), octave_user_function::stash_fcn_location(), and octave_user_function::stash_function_name().
Referenced by octave_push_parse().
|
inherited |
Definition at line 8058 of file oct-parse.cc.
References base_list< elt_type >::append(), tree_statement::column(), lexical_feedback::symbol_table_context::curr_scope(), dir_sep_chars, octave_function::document(), octave_user_code::fcn_file_name(), base_lexer::comment_buffer::get_comment(), base_lexer::input_from_tmp_history_file(), tree_statement::line(), base_parser::m_autoloading, base_lexer::m_comment_buf, base_parser::m_curr_class_name, base_parser::m_curr_fcn_depth, lexical_feedback::m_dir_name, base_parser::m_fcn_file_from_relative_lookup, lexical_feedback::m_fcn_file_full_name, lexical_feedback::m_fcn_file_name, lexical_feedback::m_force_script, lexical_feedback::m_help_text, base_parser::m_lexer, lexical_feedback::m_package_name, lexical_feedback::m_parsing_class_method, lexical_feedback::m_parsing_classdef, lexical_feedback::m_parsing_classdef_get_method, lexical_feedback::m_parsing_classdef_set_method, base_parser::m_parsing_subfunctions, base_parser::m_primary_fcn, lexical_feedback::m_reading_classdef_file, lexical_feedback::m_reading_fcn_file, lexical_feedback::m_reading_script_file, lexical_feedback::m_symtab_context, octave_user_function::mark_as_classdef_constructor(), octave_user_function::mark_as_classdef_method(), octave_user_function::mark_as_legacy_constructor(), octave_user_function::mark_as_legacy_method(), octave_user_function::mark_as_system_fcn_file(), octave_function::mark_relative(), octave_function::name(), octave_value(), octave_function::stash_dir_name(), octave_function::stash_dispatch_class(), octave_user_function::stash_fcn_end_location(), octave_user_code::stash_fcn_file_name(), octave_user_code::stash_fcn_file_time(), octave_user_function::stash_function_name(), octave_function::stash_package_name(), octave_user_function::stash_trailing_comment(), warning(), and warning_with_id().
Referenced by base_parser::make_function().
|
inherited |
Definition at line 7667 of file oct-parse.cc.
References base_parser::maybe_warn_assign_as_truth_value().
Referenced by octave_push_parse().
|
inherited |
Definition at line 6849 of file oct-parse.cc.
References base_parser::m_stmt_list.
Referenced by bp_table::condition_valid(), tree_evaluator::eval_string(), and debugger::repl().
|
inlineinherited |
Definition at line 194 of file parse.h.
Referenced by base_parser::finish_input().
|
inherited |
Definition at line 9231 of file oct-parse.cc.
References base_parser::bison_error(), and tree_expression::is_matrix().
Referenced by octave_push_parse().
|
inherited |
Definition at line 9256 of file oct-parse.cc.
References __get_evaluator__(), base_parser::bison_error(), tree_expression::evaluate(), base_list< elt_type >::front(), tree_expression::is_constant(), tree_expression::is_matrix(), tree_argument_list::is_valid_lvalue_list(), octave_value::isempty(), base_parser::m_lexer, tree_argument_list::mark_as_simple_assign_lhs(), lexical_feedback::mark_as_variables(), base_list< elt_type >::pop_front(), base_list< elt_type >::size(), and tree_argument_list::variable_names().
Referenced by octave_push_parse().
|
inherited |
Definition at line 9164 of file oct-parse.cc.
References base_list< elt_type >::back(), base_parser::bison_error(), base_list< elt_type >::end(), base_list< elt_type >::erase(), tree_decl_elt::ident(), tree_parameter_list::in, tree_identifier::is_black_hole(), iskeyword(), len, base_list< elt_type >::length(), tree_parameter_list::mark_varargs(), tree_parameter_list::mark_varargs_only(), and tree_identifier::name().
Referenced by octave_push_parse().
|
inherited |
Definition at line 9988 of file oct-parse.cc.
References octave_function::accept(), base_parser::bison_error(), parse_tree_validator::error_list(), base_parser::m_primary_fcn, parse_tree_validator::ok(), and octave_value::user_code_value().
Referenced by octave_push_parse().
|
protectedinherited |
Definition at line 745 of file parse.h.
Referenced by base_parser::reset(), and base_parser::start_function().
|
protectedinherited |
Definition at line 795 of file parse.h.
Referenced by base_parser::finish_classdef_file(), and base_parser::reset().
|
protectedinherited |
Definition at line 777 of file parse.h.
Referenced by base_parser::reset(), base_parser::start_classdef_external_method(), and base_parser::start_function().
|
protectedinherited |
Definition at line 769 of file parse.h.
Referenced by base_parser::finish_function(), base_parser::make_decl_command(), base_parser::make_fcn_name(), base_parser::maybe_warn_missing_semi(), base_parser::push_fcn_symtab(), base_parser::recover_from_parsing_function(), base_parser::reset(), and base_parser::start_function().
|
protectedinherited |
Definition at line 781 of file parse.h.
Referenced by base_parser::make_classdef(), and base_parser::reset().
|
protectedinherited |
Definition at line 742 of file parse.h.
Referenced by base_parser::finish_function(), and base_parser::reset().
|
protectedinherited |
Definition at line 749 of file parse.h.
Referenced by base_parser::reset(), and base_parser::start_function().
|
protectedinherited |
Definition at line 784 of file parse.h.
Referenced by base_parser::finish_function(), base_parser::make_fcn_name(), base_parser::push_fcn_symtab(), base_parser::recover_from_parsing_function(), and base_parser::reset().
|
private |
|
protectedinherited |
Definition at line 801 of file parse.h.
Referenced by base_parser::~base_parser(), base_parser::bison_error(), base_parser::disallow_command_syntax(), base_parser::finish_classdef_file(), base_parser::finish_function(), base_parser::finish_if_command(), base_parser::finish_input(), base_parser::finish_switch_command(), base_parser::make_anon_fcn_handle(), base_parser::make_assign_op(), base_parser::make_break_command(), base_parser::make_classdef(), base_parser::make_continue_command(), base_parser::make_decl_command(), base_parser::make_do_until_command(), base_parser::make_fcn_name(), base_parser::make_for_command(), base_parser::make_identifier(), base_parser::make_indirect_ref(), base_parser::make_script(), base_parser::make_statement(), base_parser::make_try_command(), base_parser::make_unwind_command(), base_parser::make_while_command(), base_parser::maybe_warn_assign_as_truth_value(), base_parser::maybe_warn_missing_semi(), base_parser::maybe_warn_variable_switch_label(), base_parser::push_fcn_symtab(), base_parser::recover_from_parsing_function(), base_parser::reset(), run(), parser::run(), base_parser::start_function(), and base_parser::validate_matrix_for_assignment().
|
protectedinherited |
Definition at line 762 of file parse.h.
Referenced by base_parser::push_fcn_symtab(), and base_parser::reset().
|
protectedinherited |
Definition at line 739 of file parse.h.
Referenced by base_parser::bison_error(), run(), and parser::run().
|
protectedinherited |
Definition at line 804 of file parse.h.
Referenced by base_parser::~base_parser(), base_parser::reset(), run(), and parser::run().
|
protectedinherited |
Definition at line 758 of file parse.h.
Referenced by base_parser::make_fcn_name(), and base_parser::reset().
|
protectedinherited |
Definition at line 753 of file parse.h.
Referenced by base_parser::finish_function(), base_parser::push_fcn_symtab(), base_parser::recover_from_parsing_function(), base_parser::reset(), and base_parser::start_function().
|
protectedinherited |
Definition at line 787 of file parse.h.
Referenced by base_parser::make_script(), base_parser::reset(), base_parser::start_function(), and base_parser::validate_primary_fcn().
|
protectedinherited |
Definition at line 773 of file parse.h.
Referenced by base_parser::finish_function(), base_parser::push_fcn_symtab(), and base_parser::reset().
|
private |
|
protectedinherited |
Definition at line 798 of file parse.h.
Referenced by base_parser::reset(), and base_parser::statement_list().
|
protectedinherited |
Definition at line 792 of file parse.h.
Referenced by base_parser::finish_function(), and base_parser::reset().