#include "lex.h"
Classes | |
class | bbp_nesting_level |
class | symbol_table_context |
class | token_cache |
Public Member Functions | |
lexical_feedback (const lexical_feedback &)=delete | |
lexical_feedback (interpreter &interp) | |
~lexical_feedback (void) | |
void | init (void) |
void | mark_as_variable (const std::string &nm) |
void | mark_as_variables (const std::list< std::string > &lst) |
void | mark_previous_token_trailing_space (void) |
lexical_feedback & | operator= (const lexical_feedback &)=delete |
bool | previous_token_is_binop (void) const |
bool | previous_token_is_keyword (void) const |
bool | previous_token_may_be_command (void) const |
int | previous_token_value (void) const |
bool | previous_token_value_is (int tok_val) const |
void | reset (void) |
bool | space_follows_previous_token (void) const |
|
inline |
|
delete |
void lexical_feedback::mark_as_variable | ( | const std::string & | nm | ) |
Definition at line 5239 of file lex.cc.
References octave::symbol_scope::mark_as_variable().
Referenced by octave::base_parser::make_assign_op(), and octave::base_parser::make_for_command().
void lexical_feedback::mark_as_variables | ( | const std::list< std::string > & | lst | ) |
Definition at line 5248 of file lex.cc.
References octave::symbol_scope::mark_as_variables().
Referenced by octave::base_parser::make_assign_op(), octave::base_parser::make_decl_command(), octave::base_parser::make_for_command(), and octave::base_parser::validate_matrix_for_assignment().
void lexical_feedback::mark_previous_token_trailing_space | ( | void | ) |
Definition at line 5197 of file lex.cc.
References octave::token::mark_trailing_space().
|
delete |
bool lexical_feedback::previous_token_is_binop | ( | void | ) | const |
Definition at line 5212 of file lex.cc.
References ADD_EQ, AND_EQ, DIV_EQ, EDIV, EDIV_EQ, ELEFTDIV, ELEFTDIV_EQ, EMUL, EMUL_EQ, EPOW, EPOW_EQ, EXPR_AND, EXPR_AND_AND, EXPR_EQ, EXPR_GE, EXPR_GT, EXPR_LE, EXPR_LT, EXPR_NE, EXPR_NOT, EXPR_OR, EXPR_OR_OR, LEFTDIV, LEFTDIV_EQ, MUL_EQ, OR_EQ, POW, POW_EQ, and SUB_EQ.
bool lexical_feedback::previous_token_is_keyword | ( | void | ) | const |
Definition at line 5232 of file lex.cc.
References octave::token::iskeyword().
bool lexical_feedback::previous_token_may_be_command | ( | void | ) | const |
Definition at line 5257 of file lex.cc.
References octave::token::may_be_command().
int lexical_feedback::previous_token_value | ( | void | ) | const |
Definition at line 5183 of file lex.cc.
References octave::token::token_value().
Definition at line 5190 of file lex.cc.
References octave::token::token_value_is().
bool lexical_feedback::space_follows_previous_token | ( | void | ) | const |
Definition at line 5205 of file lex.cc.
References octave::token::space_follows_token().
bool octave::lexical_feedback::m_allow_command_syntax |
Definition at line 358 of file lex.h.
Referenced by octave::base_parser::disallow_command_syntax().
bool octave::lexical_feedback::m_buffer_function_text |
Definition at line 442 of file lex.h.
Referenced by octave::base_parser::finish_function().
bool octave::lexical_feedback::m_classdef_element_names_are_keywords |
int octave::lexical_feedback::m_defining_func |
Definition at line 454 of file lex.h.
Referenced by octave::base_parser::recover_from_parsing_function().
std::string octave::lexical_feedback::m_dir_name |
Definition at line 501 of file lex.h.
Referenced by octave::base_parser::finish_function(), octave::base_parser::make_script(), and octave::base_parser::start_function().
bool octave::lexical_feedback::m_end_of_input |
Definition at line 355 of file lex.h.
Referenced by octave::base_parser::at_end_of_input(), and octave::base_parser::finish_input().
std::string octave::lexical_feedback::m_fcn_file_full_name |
Definition at line 498 of file lex.h.
Referenced by octave::base_parser::make_anon_fcn_handle(), octave::base_parser::make_classdef(), octave::base_parser::make_decl_command(), octave::base_parser::make_script(), octave::base_parser::maybe_warn_assign_as_truth_value(), octave::base_parser::maybe_warn_missing_semi(), octave::base_parser::maybe_warn_variable_switch_label(), octave::push_parser::run(), octave::parser::run(), and octave::base_parser::start_function().
std::string octave::lexical_feedback::m_fcn_file_name |
Definition at line 495 of file lex.h.
Referenced by octave::base_parser::make_classdef(), octave::base_parser::make_fcn_name(), octave::base_parser::make_script(), and octave::base_parser::start_function().
bool octave::lexical_feedback::m_force_script |
Definition at line 429 of file lex.h.
Referenced by octave::base_parser::start_function().
std::string octave::lexical_feedback::m_function_text |
Definition at line 492 of file lex.h.
Referenced by octave::base_parser::finish_function().
std::string octave::lexical_feedback::m_help_text |
Definition at line 489 of file lex.h.
Referenced by octave::base_parser::make_script(), and octave::base_parser::start_function().
interpreter& octave::lexical_feedback::m_interpreter |
bool octave::lexical_feedback::m_looking_at_matrix_or_assign_lhs |
std::list<bool> octave::lexical_feedback::m_looking_at_object_index |
bool octave::lexical_feedback::m_looking_at_parameter_list |
Definition at line 371 of file lex.h.
Referenced by octave::base_parser::recover_from_parsing_function().
bool octave::lexical_feedback::m_looking_at_return_list |
Definition at line 368 of file lex.h.
Referenced by octave::base_parser::recover_from_parsing_function().
int octave::lexical_feedback::m_looping |
Definition at line 451 of file lex.h.
Referenced by octave::base_parser::make_break_command(), octave::base_parser::make_continue_command(), octave::base_parser::make_do_until_command(), octave::base_parser::make_for_command(), and octave::base_parser::make_while_command().
bool octave::lexical_feedback::m_maybe_classdef_get_set_method |
Definition at line 416 of file lex.h.
Referenced by octave::base_parser::make_fcn_name().
bbp_nesting_level octave::lexical_feedback::m_nesting_level |
std::string octave::lexical_feedback::m_package_name |
Definition at line 504 of file lex.h.
Referenced by octave::base_parser::start_function().
std::stack<bool> octave::lexical_feedback::m_parsed_function_name |
Definition at line 513 of file lex.h.
Referenced by octave::base_parser::make_fcn_name(), and octave::base_parser::recover_from_parsing_function().
bool octave::lexical_feedback::m_parsing_class_method |
Definition at line 399 of file lex.h.
Referenced by octave::base_parser::start_function().
bool octave::lexical_feedback::m_parsing_classdef |
Definition at line 402 of file lex.h.
Referenced by octave::base_parser::start_function().
bool octave::lexical_feedback::m_parsing_classdef_get_method |
Definition at line 419 of file lex.h.
Referenced by octave::base_parser::start_function().
bool octave::lexical_feedback::m_parsing_classdef_set_method |
Definition at line 422 of file lex.h.
Referenced by octave::base_parser::start_function().
bool octave::lexical_feedback::m_reading_classdef_file |
Definition at line 438 of file lex.h.
Referenced by octave::base_parser::finish_classdef_file(), and octave::base_parser::start_function().
bool octave::lexical_feedback::m_reading_fcn_file |
Definition at line 432 of file lex.h.
Referenced by octave::base_parser::finish_function(), octave::base_parser::recover_from_parsing_function(), and octave::base_parser::start_function().
bool octave::lexical_feedback::m_reading_script_file |
Definition at line 435 of file lex.h.
Referenced by octave::base_parser::make_decl_command(), octave::base_parser::push_fcn_symtab(), and octave::base_parser::start_function().
symbol_table_context octave::lexical_feedback::m_symtab_context |
Definition at line 516 of file lex.h.
Referenced by octave::base_parser::make_anon_fcn_handle(), octave::base_parser::make_classdef(), octave::base_parser::make_fcn_name(), octave::base_parser::make_identifier(), octave::base_parser::make_script(), octave::base_parser::push_fcn_symtab(), octave::base_parser::recover_from_parsing_function(), and octave::base_parser::start_function().
token_cache octave::lexical_feedback::m_tokens |