GNU Octave
4.2.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include "lex.h"
Protected Member Functions | |
lexer (const lexer &) | |
lexer & | operator= (const lexer &) |
Protected Attributes | |
std::stack< int > | start_state_stack |
|
inline |
|
inline |
|
inline |
|
protected |
|
inlineinherited |
Definition at line 566 of file lex.h.
Referenced by octave::push_parser::run().
|
inlineinherited |
|
inherited |
|
inherited |
Definition at line 5940 of file lex.cc.
References BEGIN, OCTAVE_YYG, octave::base_lexer::start_state(), and octave::base_lexer::start_state_stack.
Referenced by octave::base_lexer::reset().
Definition at line 6085 of file lex.cc.
References octave::lexical_feedback::current_input_column, octave::base_lexer::handle_token(), and octave::lexical_feedback::input_line_number.
Definition at line 6095 of file lex.cc.
Referenced by octave::base_lexer::handle_fq_identifier(), octave::base_lexer::handle_meta_identifier(), and octave::base_lexer::show_token().
|
inherited |
|
inlinevirtual |
Implements octave::base_lexer.
|
inherited |
Definition at line 5949 of file lex.cc.
References BEGIN, OCTAVE_YYG, octave::base_lexer::start_state(), and octave::base_lexer::start_state_stack.
Referenced by octave::base_lexer::pop_start_state().
|
inherited |
Definition at line 5768 of file lex.cc.
Referenced by fill_flex_buffer().
|
inherited |
|
inherited |
Implements octave::base_lexer.
Definition at line 6129 of file lex.cc.
References octave::base_lexer::display_token().
|
inherited |
Definition at line 5443 of file lex.cc.
References octave::lexical_feedback::at_beginning_of_statement, octave::lexical_feedback::comment_text, and octave_comment_elt::end_of_line.
|
inherited |
Definition at line 4929 of file lex.cc.
References octave::lexical_feedback::reading_classdef_file, octave::lexical_feedback::reading_fcn_file, octave::lexical_feedback::reading_script_file, and warning().
|
inherited |
Definition at line 4923 of file lex.cc.
Referenced by octave::base_lexer::pop_start_state().
|
inherited |
|
inlineinherited |
Definition at line 600 of file lex.h.
Referenced by octave::base_parser::make_statement().
Definition at line 5462 of file lex.cc.
References octave::base_lexer::comment_buffer::append(), octave::lexical_feedback::at_beginning_of_statement, octave::base_lexer::comment_buf, octave::lexical_feedback::comment_text, octave_comment_elt::copyright, octave::lexical_feedback::help_text, looks_like_copyright(), octave::lexical_feedback::nesting_level, and octave::lexical_feedback::bbp_nesting_level::none().
|
inherited |
|
inherited |
|
inherited |
Definition at line 5549 of file lex.cc.
References octave::base_lexer::count_token_internal(), octave::lexical_feedback::current_input_column, octave::lexical_feedback::input_line_number, LEXICAL_ERROR, and octave::base_lexer::push_token().
|
inherited |
|
inherited |
|
inherited |
Definition at line 5526 of file lex.cc.
References octave::base_lexer::count_token_internal(), octave::lexical_feedback::current_input_column, octave::lexical_feedback::input_line_number, LEXICAL_ERROR, and octave::base_lexer::push_token().
Definition at line 6048 of file lex.cc.
Referenced by octave::base_lexer::handle_token().
|
inherited |
|
inherited |
Definition at line 6063 of file lex.cc.
References octave::base_lexer::handle_op_internal(), and octave::base_lexer::maybe_unput_comma_before_unary_op().
Referenced by octave::base_lexer::count_token().
|
inlinevirtual |
Implements octave::base_lexer.
|
inlinevirtual |
Reimplemented from octave::base_lexer.
|
inlinevirtual |
Reimplemented from octave::base_lexer.
|
inlinevirtual |
Reimplemented from octave::base_lexer.
|
inlinevirtual |
Reimplemented from octave::base_lexer.
|
inherited |
|
inherited |
|
inlinevirtualinherited |
Reimplemented in octave::push_lexer.
|
inherited |
|
inherited |
|
inherited |
Definition at line 4994 of file lex.cc.
References display_character().
|
inherited |
Definition at line 5484 of file lex.cc.
References octave::lexical_feedback::bracketflag, octave::lexical_feedback::nesting_level, octave::lexical_feedback::bbp_nesting_level::none(), and octave::lexical_feedback::bbp_nesting_level::remove().
|
inherited |
|
inherited |
Definition at line 4764 of file lex.cc.
Referenced by octave::base_parser::validate_matrix_for_assignment().
|
inherited |
|
inherited |
Definition at line 6011 of file lex.cc.
Referenced by octave::base_lexer::handle_token().
|
inherited |
|
inherited |
|
inherited |
Definition at line 5930 of file lex.cc.
References octave::base_lexer::display_start_state(), and octave::base_lexer::flex_yytext().
|
inherited |
Definition at line 4888 of file lex.cc.
Referenced by parse_fcn_file().
|
inherited |
Definition at line 4721 of file lex.cc.
References octave::lexical_feedback::token_cache::front(), token::token_value_is(), and octave::lexical_feedback::tokens.
|
inherited |
Definition at line 4741 of file lex.cc.
References octave::lexical_feedback::previous_token_value().
|
inherited |
|
inherited |
Definition at line 4692 of file lex.cc.
Referenced by octave::lexical_feedback::previous_token_is_keyword().
|
inlinevirtual |
Implements octave::base_lexer.
Implements octave::base_lexer.
|
inherited |
|
inherited |
Definition at line 5753 of file lex.cc.
Referenced by octave::base_lexer::handle_fq_identifier(), octave::base_lexer::handle_meta_identifier(), and octave::base_lexer::show_token().
|
inlinevirtual |
Reimplemented from octave::base_lexer.
Definition at line 732 of file lex.h.
References octave::base_lexer::reset().
Referenced by octave::base_parser::reset().
Definition at line 6107 of file lex.cc.
References octave::base_lexer::count_token_internal(), octave::lexical_feedback::current_input_column, octave::lexical_feedback::input_line_number, and octave::base_lexer::push_token().
|
inherited |
Definition at line 4714 of file lex.cc.
References octave::lexical_feedback::token_cache::front(), token::token_value(), and octave::lexical_feedback::tokens.
|
inlineinherited |
Definition at line 670 of file lex.h.
Referenced by octave::base_lexer::clear_start_state(), and octave::base_lexer::display_start_state().
|
inherited |
|
inherited |
Definition at line 5737 of file lex.cc.
References octave::lexical_feedback::fcn_file_full_name, string, and warning_with_id().
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Definition at line 4970 of file lex.cc.
References display_character(), and octave::base_lexer::scanner.
|
inherited |
Definition at line 319 of file lex.h.
Referenced by octave::base_lexer::finish_comment(), and octave::base_lexer::handle_close_bracket().
|
inherited |
|
inherited |
Definition at line 389 of file lex.h.
Referenced by octave::base_lexer::looks_like_command_arg().
|
inherited |
|
inherited |
Definition at line 643 of file lex.h.
Referenced by octave::base_parser::finish_if_command(), octave::base_parser::finish_switch_command(), octave::base_lexer::handle_close_bracket(), 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(), and octave::base_parser::start_function().
|
inherited |
Definition at line 417 of file lex.h.
Referenced by octave::base_lexer::finish_comment(), and octave::base_lexer::handle_close_bracket().
|
inherited |
Definition at line 386 of file lex.h.
Referenced by octave::base_parser::bison_error(), octave::base_lexer::count_token(), octave::base_lexer::handle_fq_identifier(), octave::base_lexer::handle_meta_identifier(), octave::base_parser::make_anon_fcn_handle(), and octave::base_lexer::show_token().
|
inherited |
Definition at line 414 of file lex.h.
Referenced by octave::base_parser::bison_error(), and octave::push_lexer::fill_flex_buffer().
|
inherited |
Definition at line 398 of file lex.h.
Referenced by octave::base_parser::recover_from_parsing_function().
|
inherited |
Definition at line 433 of file lex.h.
Referenced by octave::base_parser::bison_error(), octave::base_parser::frob_function(), 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(), parse_fcn_file(), octave::parser::run(), octave::push_parser::run(), and octave::base_lexer::warn_language_extension_continuation().
|
inherited |
Definition at line 430 of file lex.h.
Referenced by octave::base_parser::frob_function(), octave::base_parser::make_classdef(), octave::base_parser::make_script(), and parse_fcn_file().
|
inherited |
Definition at line 371 of file lex.h.
Referenced by octave::base_parser::frob_function(), and parse_fcn_file().
|
inherited |
Definition at line 420 of file lex.h.
Referenced by octave::base_parser::frob_function(), octave::base_lexer::handle_close_bracket(), and octave::base_parser::make_script().
|
inherited |
Definition at line 640 of file lex.h.
Referenced by octave::push_lexer::fill_flex_buffer().
|
inherited |
Definition at line 383 of file lex.h.
Referenced by octave::base_parser::bison_error(), octave::base_lexer::count_token(), octave::base_lexer::handle_fq_identifier(), octave::base_lexer::handle_meta_identifier(), octave::base_parser::make_anon_fcn_handle(), and octave::base_lexer::show_token().
octave_input_reader octave::lexer::input_reader |
Definition at line 769 of file lex.h.
Referenced by octave::push_lexer::fill_flex_buffer().
|
inherited |
|
inherited |
|
inherited |
Definition at line 347 of file lex.h.
Referenced by octave::base_parser::make_indirect_ref().
|
inherited |
|
inherited |
|
inherited |
Definition at line 328 of file lex.h.
Referenced by octave::base_parser::recover_from_parsing_function().
|
inherited |
Definition at line 325 of file lex.h.
Referenced by octave::base_parser::recover_from_parsing_function().
|
inherited |
|
inherited |
Definition at line 395 of file lex.h.
Referenced by octave::base_parser::make_do_until_command(), octave::base_parser::make_for_command(), and octave::base_parser::make_while_command().
|
inherited |
|
inherited |
|
inherited |
Definition at line 452 of file lex.h.
Referenced by octave::base_lexer::handle_close_bracket(), and octave::base_lexer::looks_like_command_arg().
|
inherited |
Definition at line 442 of file lex.h.
Referenced by octave::base_parser::recover_from_parsing_function().
|
inherited |
Definition at line 350 of file lex.h.
Referenced by octave::base_parser::frob_function(), and parse_fcn_file().
|
inherited |
|
inherited |
|
inherited |
Definition at line 445 of file lex.h.
Referenced by looks_like_copyright().
|
inherited |
Definition at line 380 of file lex.h.
Referenced by octave::base_parser::bison_error(), octave::base_lexer::flex_yyleng(), octave::base_parser::frob_function(), parse_fcn_file(), and octave_base_reader::reading_classdef_file().
|
inherited |
|
inherited |
Definition at line 377 of file lex.h.
Referenced by octave::base_parser::bison_error(), octave::base_lexer::flex_yyleng(), octave::base_parser::frob_function(), octave::base_parser::make_decl_command(), and octave_base_reader::reading_script_file().
|
inherited |
Definition at line 637 of file lex.h.
Referenced by octave::base_lexer::reset(), and octave::base_lexer::xunput().
|
protectedinherited |
Definition at line 705 of file lex.h.
Referenced by octave::base_lexer::clear_start_state(), and octave::base_lexer::display_start_state().
|
inherited |
|
inherited |
Definition at line 448 of file lex.h.
Referenced by octave::base_parser::make_anon_fcn_handle(), octave::base_parser::recover_from_parsing_function(), and octave::base_parser::start_function().
|
inherited |
Definition at line 455 of file lex.h.
Referenced by looks_like_copyright(), octave::lexical_feedback::previous_token_is_binop(), and octave::lexical_feedback::space_follows_previous_token().