GNU Octave
4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include "lex.h"
Classes | |
class | comment_buffer |
class | input_buffer |
Protected Member Functions | |
octave_base_lexer (const octave_base_lexer &) | |
octave_base_lexer & | operator= (const octave_base_lexer &) |
Protected Attributes | |
std::stack< int > | start_state_stack |
|
virtual |
Definition at line 4836 of file lex.cc.
References octave_lex_destroy(), and scanner.
|
protected |
|
inline |
Definition at line 559 of file lex.h.
Referenced by octave_push_parser::run().
void octave_base_lexer::begin_string | ( | int | state | ) |
Definition at line 4898 of file lex.cc.
References lexical_feedback::current_input_column, lexical_feedback::input_line_number, push_start_state(), lexical_feedback::string_column, and lexical_feedback::string_line.
void octave_base_lexer::clear_start_state | ( | void | ) |
Definition at line 5893 of file lex.cc.
References INITIAL, push_start_state(), and start_state_stack.
Definition at line 6038 of file lex.cc.
References count_token_internal(), lexical_feedback::current_input_column, lexical_feedback::input_line_number, and push_token().
Definition at line 6048 of file lex.cc.
References show_token(), lexical_feedback::token_count, and Vtoken_count.
Referenced by count_token(), handle_op_internal(), and handle_token().
token * octave_base_lexer::current_token | ( | void | ) |
Definition at line 5706 of file lex.cc.
References octave_get_lval(), scanner, and YYSTYPE.
Referenced by display_token().
|
pure virtual |
Implemented in octave_push_lexer, and octave_lexer.
Referenced by handle_continuation(), and is_keyword_token().
void octave_base_lexer::display_start_state | ( | void | ) | const |
Definition at line 5902 of file lex.cc.
References BLOCK_COMMENT_START, COMMAND_START, DQ_STRING_START, INITIAL, INPUT_FILE_START, LINE_COMMENT_START, MATRIX_START, SQ_STRING_START, and start_state().
Referenced by lexer_debug().
void octave_base_lexer::display_token | ( | int | tok | ) |
Definition at line 5713 of file lex.cc.
References ADD_EQ, AND_EQ, BREAK, CASE, CATCH, CLASSDEF, CLEANUP, CONTINUE, current_token(), DIV_EQ, DO, DQ_STRING, EDIV, EDIV_EQ, ELEFTDIV, ELEFTDIV_EQ, ELSE, ELSEIF, EMINUS, EMUL, EMUL_EQ, END, END_OF_INPUT, EPLUS, EPOW, EPOW_EQ, EVENTS, EXPR_AND, EXPR_AND_AND, EXPR_EQ, EXPR_GE, EXPR_GT, EXPR_LE, EXPR_LT, EXPR_NE, EXPR_NOT, EXPR_OR, EXPR_OR_OR, FCN, FCN_HANDLE, FOR, FUNC_RET, GET, GLOBAL, HERMITIAN, IF, IMAG_NUM, INPUT_FILE, LEFTDIV, LEFTDIV_EQ, LEXICAL_ERROR, LSHIFT, LSHIFT_EQ, METAQUERY, METHODS, MINUS_MINUS, MUL_EQ, NAME, symbol_table::symbol_record::name(), NUM, token::number(), OR_EQ, OTHERWISE, PERSISTENT, PLUS_PLUS, POW, POW_EQ, PROPERTIES, RSHIFT, RSHIFT_EQ, SET, SQ_STRING, STRUCT_ELT, SUB_EQ, SUPERCLASSREF, SWITCH, token::sym_rec(), token::text(), TRANSPOSE, TRY, UNTIL, UNWIND, and WHILE.
Referenced by show_token().
void octave_base_lexer::enable_fq_identifier | ( | void | ) |
Definition at line 6076 of file lex.cc.
References FQ_IDENT_START, and push_start_state().
void octave_base_lexer::fatal_error | ( | const char * | msg | ) |
Definition at line 5849 of file lex.cc.
References error(), OCTAVE_QUIT, scanner, and yy_fatal_error().
Implemented in octave_push_lexer, and octave_lexer.
void octave_base_lexer::finish_comment | ( | octave_comment_elt::comment_type | typ | ) |
Definition at line 5407 of file lex.cc.
References octave_base_lexer::comment_buffer::append(), lexical_feedback::at_beginning_of_statement, comment_buf, lexical_feedback::comment_text, octave_comment_elt::copyright, lexical_feedback::help_text, looks_like_copyright(), lexical_feedback::nesting_level, and lexical_feedback::bbp_nesting_level::none().
Referenced by handle_continuation().
int octave_base_lexer::flex_yyleng | ( | void | ) |
Definition at line 4931 of file lex.cc.
References octave_get_leng(), and scanner.
Referenced by handle_continuation(), handle_fq_identifier(), handle_identifier(), handle_meta_identifier(), handle_number(), handle_op_internal(), handle_superclass_identifier(), and handle_token().
char * octave_base_lexer::flex_yytext | ( | void | ) |
Definition at line 4925 of file lex.cc.
References octave_get_text(), and scanner.
Referenced by handle_continuation(), handle_fq_identifier(), handle_identifier(), handle_meta_identifier(), handle_number(), handle_op_internal(), handle_superclass_identifier(), lexer_debug(), and xunput().
bool octave_base_lexer::fq_identifier_contains_keyword | ( | const std::string & | s | ) |
Definition at line 5261 of file lex.cc.
References is_keyword_token().
Referenced by handle_fq_identifier(), handle_meta_identifier(), and handle_superclass_identifier().
|
inline |
Definition at line 593 of file lex.h.
Referenced by octave_base_parser::make_statement().
void octave_base_lexer::gripe_language_extension | ( | const std::string & | msg | ) |
Definition at line 5660 of file lex.cc.
References lexical_feedback::fcn_file_full_name, lexical_feedback::input_line_number, and warning_with_id().
Referenced by gripe_language_extension_continuation(), gripe_language_extension_operator(), and maybe_gripe_language_extension_comment().
void octave_base_lexer::gripe_language_extension_continuation | ( | void | ) |
Definition at line 5682 of file lex.cc.
References gripe_language_extension().
Referenced by handle_continuation().
void octave_base_lexer::gripe_language_extension_operator | ( | const std::string & | op | ) |
Definition at line 5688 of file lex.cc.
References gripe_language_extension().
Referenced by handle_op_internal().
void octave_base_lexer::gripe_single_quote_string | ( | void | ) |
Definition at line 5645 of file lex.cc.
References lexical_feedback::fcn_file_full_name, lexical_feedback::input_line_number, and warning_with_id().
Definition at line 5426 of file lex.cc.
References lexical_feedback::braceflag, lexical_feedback::bracketflag, lexical_feedback::nesting_level, lexical_feedback::bbp_nesting_level::none(), panic_impossible, pop_start_state(), and lexical_feedback::bbp_nesting_level::remove().
void octave_base_lexer::handle_continuation | ( | void | ) |
Definition at line 5346 of file lex.cc.
References lexical_feedback::at_beginning_of_statement, lexical_feedback::comment_text, lexical_feedback::current_input_column, decrement_promptflag(), octave_comment_elt::end_of_line, finish_comment(), flex_yyleng(), flex_yytext(), gripe_language_extension_continuation(), lexical_feedback::input_line_number, and lexical_feedback::mark_previous_token_trailing_space().
int octave_base_lexer::handle_end_of_input | ( | void | ) |
Definition at line 4907 of file lex.cc.
References lexical_feedback::block_comment_nesting_level, END_OF_INPUT, lexical_feedback::fcn_file_name, handle_token(), lexical_feedback::input_line_number, lexer_debug(), lexical_feedback::reading_classdef_file, lexical_feedback::reading_fcn_file, lexical_feedback::reading_script_file, and warning().
int octave_base_lexer::handle_fq_identifier | ( | void | ) |
Definition at line 5503 of file lex.cc.
References lexical_feedback::current_input_column, error(), flex_yyleng(), flex_yytext(), FQ_IDENT, fq_identifier_contains_keyword(), lexical_feedback::input_line_number, LEXICAL_ERROR, and push_token().
int octave_base_lexer::handle_identifier | ( | void | ) |
Definition at line 5526 of file lex.cc.
References lexical_feedback::at_beginning_of_statement, lexical_feedback::symbol_table_context::curr_scope(), lexical_feedback::current_input_column, error(), FCN_HANDLE, flex_yyleng(), flex_yytext(), lexical_feedback::input_line_number, symbol_table::insert(), is_keyword_token(), is_variable(), LEXICAL_ERROR, lexical_feedback::looking_at_function_handle, lexical_feedback::looking_at_indirect_ref, lexical_feedback::looking_for_object_index, token::mark_may_be_command(), NAME, push_token(), STRUCT_ELT, and lexical_feedback::symtab_context.
int octave_base_lexer::handle_language_extension_op | ( | const char * | pattern, |
int | tok, | ||
bool | bos = false |
||
) |
Definition at line 5955 of file lex.cc.
References handle_op_internal(), and lexer_debug().
Definition at line 5994 of file lex.cc.
References handle_op_internal(), and maybe_unput_comma_before_unary_op().
int octave_base_lexer::handle_meta_identifier | ( | void | ) |
Definition at line 5484 of file lex.cc.
References lexical_feedback::current_input_column, error(), flex_yyleng(), flex_yytext(), fq_identifier_contains_keyword(), lexical_feedback::input_line_number, LEXICAL_ERROR, METAQUERY, and push_token().
void octave_base_lexer::handle_number | ( | void | ) |
Definition at line 5303 of file lex.cc.
References lexical_feedback::at_beginning_of_statement, lexical_feedback::current_input_column, flex_yyleng(), flex_yytext(), lexical_feedback::input_line_number, lexical_feedback::looking_for_object_index, looks_like_hex(), NUM, push_token(), and strsave().
Definition at line 5947 of file lex.cc.
References handle_op_internal(), and lexer_debug().
Definition at line 6001 of file lex.cc.
References lexical_feedback::at_beginning_of_statement, count_token_internal(), lexical_feedback::current_input_column, flex_yyleng(), flex_yytext(), gripe_language_extension_operator(), lexical_feedback::input_line_number, lexical_feedback::looking_for_object_index, and push_token().
Referenced by handle_language_extension_op(), handle_language_extension_unary_op(), handle_op(), and handle_unary_op().
int octave_base_lexer::handle_superclass_identifier | ( | void | ) |
Definition at line 5458 of file lex.cc.
References lexical_feedback::current_input_column, error(), flex_yyleng(), flex_yytext(), fq_identifier_contains_keyword(), lexical_feedback::input_line_number, is_keyword_token(), LEXICAL_ERROR, push_token(), and SUPERCLASSREF.
Definition at line 6016 of file lex.cc.
References lexical_feedback::current_input_column, and lexical_feedback::input_line_number.
Referenced by handle_end_of_input().
Definition at line 6025 of file lex.cc.
References count_token_internal(), lexical_feedback::current_input_column, flex_yyleng(), lexical_feedback::input_line_number, and push_token().
Definition at line 5987 of file lex.cc.
References handle_op_internal(), and maybe_unput_comma_before_unary_op().
|
pure virtual |
Implemented in octave_push_lexer, and octave_lexer.
void octave_base_lexer::init | ( | void | ) |
Definition at line 4842 of file lex.cc.
References clear_start_state(), octave_lex_init(), octave_set_extra(), and scanner.
|
inlinevirtual |
|
inlinevirtual |
Reimplemented in octave_lexer.
Definition at line 650 of file lex.h.
Referenced by is_keyword_token().
|
inlinevirtual |
Reimplemented in octave_lexer.
|
inlinevirtual |
Reimplemented in octave_push_lexer, and octave_lexer.
bool octave_base_lexer::inside_any_object_index | ( | void | ) |
Definition at line 5004 of file lex.cc.
References lexical_feedback::looking_at_object_index.
Referenced by is_keyword_token().
int octave_base_lexer::is_keyword_token | ( | const std::string & | s | ) |
Definition at line 5032 of file lex.cc.
References lexical_feedback::at_beginning_of_statement, break_kw, case_kw, catch_kw, token::classdef_end, classdef_kw, continue_kw, lexical_feedback::current_input_column, decrement_promptflag(), lexical_feedback::defining_func, do_kw, else_kw, elseif_kw, end_kw, end_try_catch_kw, end_unwind_protect_kw, endclassdef_kw, endenumeration_kw, endevents_kw, endfor_kw, endfunction_kw, endif_kw, endmethods_kw, endparfor_kw, endproperties_kw, endswitch_kw, endwhile_kw, token::enumeration_end, enumeration_kw, token::events_end, events_kw, lexical_feedback::fcn_file_full_name, token::for_end, for_kw, lexical_feedback::force_script, token::function_end, function_kw, get_kw, global_kw, token::if_end, if_kw, octave_kw_hash::in_word_set(), input_from_file(), lexical_feedback::input_line_number, inside_any_object_index(), octave_kw::kw_id, lexical_feedback::looking_at_decl_list, lexical_feedback::looking_at_return_list, lexical_feedback::looping, magic_file_kw, magic_line_kw, lexical_feedback::maybe_classdef_get_set_method, token::methods_end, methods_kw, otherwise_kw, panic_impossible, token::parfor_end, parfor_kw, lexical_feedback::parsed_function_name, lexical_feedback::parsing_classdef, persistent_kw, token::properties_end, properties_kw, push_token(), lexical_feedback::reading_classdef_file, lexical_feedback::reading_fcn_file, lexical_feedback::reading_script_file, return_kw, set_kw, token::simple_end, token::switch_end, switch_kw, octave_kw::tok, lexical_feedback::token_count, token::try_catch_end, try_kw, until_kw, unwind_protect_cleanup_kw, token::unwind_protect_end, unwind_protect_kw, token::while_end, and while_kw.
Referenced by fq_identifier_contains_keyword(), handle_identifier(), and handle_superclass_identifier().
|
inlinevirtual |
Reimplemented in octave_push_lexer.
bool octave_base_lexer::is_variable | ( | const std::string & | name | ) |
Definition at line 5022 of file lex.cc.
References symbol_table::is_variable(), and lexical_feedback::pending_local_variables.
Referenced by handle_identifier().
void octave_base_lexer::lexer_debug | ( | const char * | pattern | ) |
Definition at line 5859 of file lex.cc.
References display_start_state(), flex_yytext(), and lexer_debug_flag.
Referenced by handle_end_of_input(), handle_language_extension_op(), and handle_op().
bool octave_base_lexer::looking_at_space | ( | void | ) |
Definition at line 4996 of file lex.cc.
References text_yyinput(), and xunput().
Referenced by looks_like_command_arg().
bool octave_base_lexer::looks_like_command_arg | ( | void | ) |
Definition at line 5448 of file lex.cc.
References looking_at_space(), lexical_feedback::previous_token_may_be_command(), and lexical_feedback::space_follows_previous_token().
|
inherited |
|
inherited |
Definition at line 4768 of file lex.cc.
References lexical_feedback::pending_local_variables.
Referenced by octave_base_parser::validate_matrix_for_assignment().
|
inherited |
Definition at line 4709 of file lex.cc.
References lexical_feedback::token_cache::front(), token::mark_trailing_space(), lexical_feedback::previous_token_value_is(), and lexical_feedback::tokens.
Referenced by handle_continuation().
void octave_base_lexer::maybe_gripe_language_extension_comment | ( | char | c | ) |
Definition at line 5675 of file lex.cc.
References gripe_language_extension().
|
inherited |
Definition at line 4759 of file lex.cc.
References lexical_feedback::token_cache::front(), token::is_symbol(), lexical_feedback::pending_local_variables, token::symbol_name(), and lexical_feedback::tokens.
Definition at line 5964 of file lex.cc.
References lexical_feedback::previous_token_is_binop(), lexical_feedback::previous_token_value(), lexical_feedback::space_follows_previous_token(), text_yyinput(), whitespace_is_significant(), and xunput().
Referenced by handle_language_extension_unary_op(), and handle_unary_op().
void octave_base_lexer::maybe_warn_separator_insert | ( | char | sep | ) |
Definition at line 5630 of file lex.cc.
References lexical_feedback::fcn_file_full_name, lexical_feedback::input_line_number, and warning_with_id().
|
protected |
void octave_base_lexer::pop_start_state | ( | void | ) |
Definition at line 5883 of file lex.cc.
References BEGIN, OCTAVE_YYG, start_state(), and start_state_stack.
Referenced by handle_close_bracket().
void octave_base_lexer::prep_for_file | ( | void | ) |
Definition at line 4890 of file lex.cc.
References INPUT_FILE_START, push_start_state(), and lexical_feedback::reading_script_file.
Referenced by parse_fcn_file().
|
inherited |
Definition at line 4724 of file lex.cc.
References ADD_EQ, AND_EQ, DIV_EQ, EDIV, EDIV_EQ, ELEFTDIV, ELEFTDIV_EQ, EMINUS, 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, LSHIFT, LSHIFT_EQ, MUL_EQ, OR_EQ, POW, POW_EQ, lexical_feedback::previous_token_value(), RSHIFT, RSHIFT_EQ, and SUB_EQ.
Referenced by maybe_unput_comma_before_unary_op().
|
inherited |
Definition at line 4745 of file lex.cc.
References lexical_feedback::token_cache::front(), token::is_keyword(), and lexical_feedback::tokens.
|
inherited |
Definition at line 4752 of file lex.cc.
References lexical_feedback::token_cache::front(), token::may_be_command(), and lexical_feedback::tokens.
Referenced by looks_like_command_arg().
|
inherited |
Definition at line 4695 of file lex.cc.
References lexical_feedback::token_cache::front(), token::token_value(), and lexical_feedback::tokens.
Referenced by maybe_unput_comma_before_unary_op(), and lexical_feedback::previous_token_is_binop().
Definition at line 4702 of file lex.cc.
References lexical_feedback::token_cache::front(), token::token_value_is(), and lexical_feedback::tokens.
Referenced by lexical_feedback::mark_previous_token_trailing_space().
|
pure virtual |
Implemented in octave_push_lexer, and octave_lexer.
Referenced by reset().
Implemented in octave_push_lexer, and octave_lexer.
void octave_base_lexer::push_start_state | ( | int | state | ) |
Definition at line 5873 of file lex.cc.
References BEGIN, OCTAVE_YYG, start_state(), and start_state_stack.
Referenced by begin_string(), clear_start_state(), enable_fq_identifier(), and prep_for_file().
void octave_base_lexer::push_token | ( | token * | tok | ) |
Definition at line 5698 of file lex.cc.
References octave_get_lval(), lexical_feedback::token_cache::push(), scanner, lexical_feedback::tokens, and YYSTYPE.
Referenced by count_token(), handle_fq_identifier(), handle_identifier(), handle_meta_identifier(), handle_number(), handle_op_internal(), handle_superclass_identifier(), handle_token(), and is_keyword_token().
|
virtual |
Reimplemented in octave_push_lexer, and octave_lexer.
Definition at line 4863 of file lex.cc.
References lexical_feedback::symbol_table_context::clear(), clear_start_state(), comment_buf, input_from_eval_string(), interactive, octave_restart(), promptflag(), quitting_gracefully, lexical_feedback::reading_classdef_file, lexical_feedback::reading_fcn_file, lexical_feedback::reading_script_file, lexical_feedback::reset(), octave_base_lexer::comment_buffer::reset(), scanner, and lexical_feedback::symtab_context.
Referenced by octave_base_parser::reset(), octave_lexer::reset(), and octave_push_lexer::reset().
Definition at line 6060 of file lex.cc.
References display_token(), lexer_debug_flag, and Vdisplay_tokens.
Referenced by count_token_internal().
|
inherited |
Definition at line 4717 of file lex.cc.
References lexical_feedback::token_cache::front(), token::space_follows_token(), and lexical_feedback::tokens.
Referenced by looks_like_command_arg(), and maybe_unput_comma_before_unary_op().
|
inline |
Definition at line 660 of file lex.h.
Referenced by display_start_state(), pop_start_state(), and push_start_state().
int octave_base_lexer::text_yyinput | ( | void | ) |
Definition at line 4937 of file lex.cc.
References display_character(), lexer_debug_flag, scanner, and xunput().
Referenced by looking_at_space(), and maybe_unput_comma_before_unary_op().
bool octave_base_lexer::whitespace_is_significant | ( | void | ) |
Definition at line 5289 of file lex.cc.
References lexical_feedback::bbp_nesting_level::is_brace(), lexical_feedback::bbp_nesting_level::is_bracket(), lexical_feedback::looking_at_object_index, and lexical_feedback::nesting_level.
Referenced by maybe_unput_comma_before_unary_op().
Definition at line 4972 of file lex.cc.
References display_character(), lexer_debug_flag, scanner, and yyunput().
Referenced by looking_at_space(), maybe_unput_comma_before_unary_op(), text_yyinput(), and xunput().
void octave_base_lexer::xunput | ( | char | c | ) |
Definition at line 4988 of file lex.cc.
References flex_yytext(), and xunput().
|
inherited |
Definition at line 313 of file lex.h.
Referenced by finish_comment(), handle_continuation(), handle_identifier(), handle_number(), handle_op_internal(), is_keyword_token(), and lexical_feedback::reset().
|
inherited |
Definition at line 398 of file lex.h.
Referenced by handle_end_of_input(), and lexical_feedback::reset().
|
inherited |
Definition at line 386 of file lex.h.
Referenced by handle_close_bracket(), and lexical_feedback::reset().
|
inherited |
Definition at line 383 of file lex.h.
Referenced by handle_close_bracket(), and lexical_feedback::reset().
|
inherited |
Definition at line 401 of file lex.h.
Referenced by lexical_feedback::reset().
comment_buffer octave_base_lexer::comment_buf |
Definition at line 636 of file lex.h.
Referenced by finish_comment(), octave_base_parser::finish_if_command(), octave_base_parser::finish_switch_command(), octave_base_parser::make_classdef(), octave_base_parser::make_classdef_enum_block(), octave_base_parser::make_classdef_events_block(), octave_base_parser::make_classdef_methods_block(), octave_base_parser::make_classdef_properties_block(), octave_base_parser::make_do_until_command(), octave_base_parser::make_for_command(), octave_base_parser::make_try_command(), octave_base_parser::make_unwind_command(), octave_base_parser::make_while_command(), reset(), and octave_base_parser::start_function().
|
inherited |
Definition at line 411 of file lex.h.
Referenced by finish_comment(), handle_continuation(), and lexical_feedback::reset().
|
inherited |
Definition at line 380 of file lex.h.
Referenced by begin_string(), octave_base_parser::bison_error(), count_token(), handle_continuation(), handle_fq_identifier(), handle_identifier(), handle_meta_identifier(), handle_number(), handle_op_internal(), handle_superclass_identifier(), handle_token(), is_keyword_token(), octave_base_parser::make_anon_fcn_handle(), and lexical_feedback::reset().
|
inherited |
Definition at line 408 of file lex.h.
Referenced by octave_base_parser::bison_error(), octave_lexer::fill_flex_buffer(), and lexical_feedback::reset().
|
inherited |
Definition at line 392 of file lex.h.
Referenced by is_keyword_token(), octave_base_parser::recover_from_parsing_function(), and lexical_feedback::reset().
|
inherited |
Definition at line 309 of file lex.h.
Referenced by eval_string(), main_loop(), and lexical_feedback::reset().
|
inherited |
Definition at line 427 of file lex.h.
Referenced by octave_base_parser::bison_error(), octave_base_parser::frob_function(), gripe_language_extension(), gripe_single_quote_string(), is_keyword_token(), 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(), maybe_warn_separator_insert(), octave_base_parser::maybe_warn_variable_switch_label(), parse_fcn_file(), and lexical_feedback::reset().
|
inherited |
Definition at line 424 of file lex.h.
Referenced by octave_base_parser::frob_function(), handle_end_of_input(), octave_base_parser::make_classdef(), octave_base_parser::make_script(), parse_fcn_file(), and lexical_feedback::reset().
|
inherited |
Definition at line 365 of file lex.h.
Referenced by octave_base_parser::frob_function(), is_keyword_token(), parse_fcn_file(), and lexical_feedback::reset().
|
inherited |
Definition at line 414 of file lex.h.
Referenced by finish_comment(), octave_base_parser::frob_function(), octave_base_parser::make_script(), and lexical_feedback::reset().
input_buffer octave_base_lexer::input_buf |
Definition at line 633 of file lex.h.
Referenced by octave_lexer::fill_flex_buffer(), and octave_push_lexer::fill_flex_buffer().
|
inherited |
Definition at line 377 of file lex.h.
Referenced by begin_string(), octave_base_parser::bison_error(), count_token(), gripe_language_extension(), gripe_single_quote_string(), handle_continuation(), handle_end_of_input(), handle_fq_identifier(), handle_identifier(), handle_meta_identifier(), handle_number(), handle_op_internal(), handle_superclass_identifier(), handle_token(), is_keyword_token(), octave_base_parser::make_anon_fcn_handle(), maybe_warn_separator_insert(), and lexical_feedback::reset().
|
inherited |
Definition at line 316 of file lex.h.
Referenced by lexical_feedback::reset().
|
inherited |
Definition at line 326 of file lex.h.
Referenced by is_keyword_token(), and lexical_feedback::reset().
|
inherited |
Definition at line 395 of file lex.h.
Referenced by handle_identifier(), and lexical_feedback::reset().
|
inherited |
Definition at line 341 of file lex.h.
Referenced by handle_identifier(), octave_base_parser::make_indirect_ref(), and lexical_feedback::reset().
|
inherited |
Definition at line 330 of file lex.h.
Referenced by lexical_feedback::reset().
|
inherited |
Definition at line 334 of file lex.h.
Referenced by lexical_feedback::reset().
|
inherited |
Definition at line 431 of file lex.h.
Referenced by lexical_feedback::init(), inside_any_object_index(), lexical_feedback::reset(), and whitespace_is_significant().
|
inherited |
Definition at line 322 of file lex.h.
Referenced by octave_base_parser::recover_from_parsing_function(), and lexical_feedback::reset().
|
inherited |
Definition at line 319 of file lex.h.
Referenced by is_keyword_token(), octave_base_parser::recover_from_parsing_function(), and lexical_feedback::reset().
|
inherited |
Definition at line 337 of file lex.h.
Referenced by handle_identifier(), handle_number(), handle_op_internal(), and lexical_feedback::reset().
|
inherited |
Definition at line 389 of file lex.h.
Referenced by is_keyword_token(), octave_base_parser::make_do_until_command(), octave_base_parser::make_for_command(), octave_base_parser::make_while_command(), and lexical_feedback::reset().
|
inherited |
Definition at line 352 of file lex.h.
Referenced by is_keyword_token(), and lexical_feedback::reset().
|
inherited |
Definition at line 446 of file lex.h.
Referenced by finish_comment(), handle_close_bracket(), lexical_feedback::reset(), and whitespace_is_significant().
|
inherited |
Definition at line 436 of file lex.h.
Referenced by is_keyword_token(), octave_base_parser::recover_from_parsing_function(), and lexical_feedback::reset().
|
inherited |
Definition at line 344 of file lex.h.
Referenced by octave_base_parser::frob_function(), parse_fcn_file(), and lexical_feedback::reset().
|
inherited |
Definition at line 347 of file lex.h.
Referenced by is_keyword_token(), and lexical_feedback::reset().
|
inherited |
Definition at line 355 of file lex.h.
Referenced by lexical_feedback::reset().
|
inherited |
Definition at line 358 of file lex.h.
Referenced by lexical_feedback::reset().
|
inherited |
Definition at line 439 of file lex.h.
Referenced by is_variable(), lexical_feedback::mark_as_variables(), and lexical_feedback::maybe_mark_previous_token_as_variable().
|
inherited |
Definition at line 374 of file lex.h.
Referenced by octave_base_parser::bison_error(), octave_base_parser::frob_function(), handle_end_of_input(), is_keyword_token(), parse_fcn_file(), octave_base_reader::reading_classdef_file(), lexical_feedback::reset(), and reset().
|
inherited |
Definition at line 368 of file lex.h.
Referenced by octave_base_parser::bison_error(), octave_base_parser::finish_function(), octave_base_parser::frob_function(), handle_end_of_input(), is_keyword_token(), octave_base_reader::reading_fcn_file(), octave_base_parser::recover_from_parsing_function(), lexical_feedback::reset(), and reset().
|
inherited |
Definition at line 371 of file lex.h.
Referenced by octave_base_parser::bison_error(), octave_base_parser::frob_function(), handle_end_of_input(), is_keyword_token(), octave_base_parser::make_decl_command(), prep_for_file(), octave_base_reader::reading_script_file(), lexical_feedback::reset(), and reset().
void* octave_base_lexer::scanner |
Definition at line 630 of file lex.h.
Referenced by current_token(), fatal_error(), flex_yyleng(), flex_yytext(), init(), push_token(), reset(), text_yyinput(), xunput(), and ~octave_base_lexer().
|
protected |
Definition at line 695 of file lex.h.
Referenced by clear_start_state(), pop_start_state(), and push_start_state().
|
inherited |
Definition at line 421 of file lex.h.
Referenced by begin_string(), and lexical_feedback::reset().
|
inherited |
Definition at line 420 of file lex.h.
Referenced by begin_string(), and lexical_feedback::reset().
|
inherited |
Definition at line 417 of file lex.h.
Referenced by lexical_feedback::reset().
|
inherited |
Definition at line 442 of file lex.h.
Referenced by handle_identifier(), octave_base_parser::make_anon_fcn_handle(), octave_base_parser::recover_from_parsing_function(), reset(), and octave_base_parser::start_function().
|
inherited |
Definition at line 405 of file lex.h.
Referenced by count_token_internal(), is_keyword_token(), and lexical_feedback::reset().
|
inherited |
Definition at line 449 of file lex.h.
Referenced by lexical_feedback::mark_previous_token_trailing_space(), lexical_feedback::maybe_mark_previous_token_as_variable(), lexical_feedback::previous_token_is_keyword(), lexical_feedback::previous_token_may_be_command(), lexical_feedback::previous_token_value(), lexical_feedback::previous_token_value_is(), push_token(), lexical_feedback::reset(), lexical_feedback::space_follows_previous_token(), and lexical_feedback::~lexical_feedback().