GNU Octave  4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Public Member Functions | Public Attributes | Private Member Functions | List of all members
lexical_feedback Class Reference

#include "lex.h"

Inheritance diagram for lexical_feedback:
Inheritance graph
[legend]
Collaboration diagram for lexical_feedback:
Collaboration graph
[legend]

Classes

class  bbp_nesting_level
 
class  symbol_table_context
 
class  token_cache
 

Public Member Functions

 lexical_feedback (void)
 
 ~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)
 
void maybe_mark_previous_token_as_variable (void)
 
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
 

Public Attributes

bool at_beginning_of_statement
 
int block_comment_nesting_level
 
int braceflag
 
int bracketflag
 
int command_arg_paren_count
 
std::string comment_text
 
int current_input_column
 
std::string current_input_line
 
int defining_func
 
bool end_of_input
 
std::string fcn_file_full_name
 
std::string fcn_file_name
 
bool force_script
 
std::string help_text
 
int input_line_number
 
bool looking_at_anon_fcn_args
 
bool looking_at_decl_list
 
int looking_at_function_handle
 
bool looking_at_indirect_ref
 
bool looking_at_initializer_expression
 
bool looking_at_matrix_or_assign_lhs
 
std::list< boollooking_at_object_index
 
bool looking_at_parameter_list
 
bool looking_at_return_list
 
bool looking_for_object_index
 
int looping
 
bool maybe_classdef_get_set_method
 
bbp_nesting_level nesting_level
 
std::stack< boolparsed_function_name
 
bool parsing_class_method
 
bool parsing_classdef
 
bool parsing_classdef_get_method
 
bool parsing_classdef_set_method
 
std::set< std::string > pending_local_variables
 
bool quote_is_transpose
 
bool reading_classdef_file
 
bool reading_fcn_file
 
bool reading_script_file
 
int string_column
 
int string_line
 
std::string string_text
 
symbol_table_context symtab_context
 
size_t token_count
 
token_cache tokens
 

Private Member Functions

 lexical_feedback (const lexical_feedback &)
 
lexical_feedbackoperator= (const lexical_feedback &)
 

Detailed Description

Definition at line 41 of file lex.h.

Constructor & Destructor Documentation

lexical_feedback::lexical_feedback ( void  )
inline

Definition at line 256 of file lex.h.

lexical_feedback::~lexical_feedback ( void  )

Definition at line 4630 of file lex.cc.

References lexical_feedback::token_cache::clear(), and tokens.

lexical_feedback::lexical_feedback ( const lexical_feedback )
private

Member Function Documentation

void lexical_feedback::init ( void  )

Definition at line 4636 of file lex.cc.

References looking_at_object_index.

void lexical_feedback::mark_as_variable ( const std::string &  nm)
void lexical_feedback::mark_as_variables ( const std::list< std::string > &  lst)

Definition at line 4768 of file lex.cc.

References pending_local_variables.

Referenced by octave_base_parser::validate_matrix_for_assignment().

void lexical_feedback::mark_previous_token_trailing_space ( void  )
void lexical_feedback::maybe_mark_previous_token_as_variable ( void  )
lexical_feedback& lexical_feedback::operator= ( const lexical_feedback )
private
bool lexical_feedback::previous_token_is_binop ( void  ) const
bool lexical_feedback::previous_token_is_keyword ( void  ) const

Definition at line 4745 of file lex.cc.

References lexical_feedback::token_cache::front(), token::is_keyword(), and tokens.

bool lexical_feedback::previous_token_may_be_command ( void  ) const
int lexical_feedback::previous_token_value ( void  ) const
bool lexical_feedback::previous_token_value_is ( int  tok_val) const
void lexical_feedback::reset ( void  )
bool lexical_feedback::space_follows_previous_token ( void  ) const

Member Data Documentation

bool lexical_feedback::at_beginning_of_statement
int lexical_feedback::block_comment_nesting_level

Definition at line 398 of file lex.h.

Referenced by octave_base_lexer::handle_end_of_input(), and reset().

int lexical_feedback::braceflag

Definition at line 386 of file lex.h.

Referenced by octave_base_lexer::handle_close_bracket(), and reset().

int lexical_feedback::bracketflag

Definition at line 383 of file lex.h.

Referenced by octave_base_lexer::handle_close_bracket(), and reset().

int lexical_feedback::command_arg_paren_count

Definition at line 401 of file lex.h.

Referenced by reset().

std::string lexical_feedback::comment_text
int lexical_feedback::current_input_column
std::string lexical_feedback::current_input_line

Definition at line 408 of file lex.h.

Referenced by octave_base_parser::bison_error(), octave_lexer::fill_flex_buffer(), and reset().

int lexical_feedback::defining_func
bool lexical_feedback::end_of_input

Definition at line 309 of file lex.h.

Referenced by eval_string(), main_loop(), and reset().

std::string lexical_feedback::fcn_file_full_name
std::string lexical_feedback::fcn_file_name
bool lexical_feedback::force_script
std::string lexical_feedback::help_text
int lexical_feedback::input_line_number
bool lexical_feedback::looking_at_anon_fcn_args

Definition at line 316 of file lex.h.

Referenced by reset().

bool lexical_feedback::looking_at_decl_list

Definition at line 326 of file lex.h.

Referenced by octave_base_lexer::is_keyword_token(), and reset().

int lexical_feedback::looking_at_function_handle

Definition at line 395 of file lex.h.

Referenced by octave_base_lexer::handle_identifier(), and reset().

bool lexical_feedback::looking_at_indirect_ref
bool lexical_feedback::looking_at_initializer_expression

Definition at line 330 of file lex.h.

Referenced by reset().

bool lexical_feedback::looking_at_matrix_or_assign_lhs

Definition at line 334 of file lex.h.

Referenced by reset().

std::list<bool> lexical_feedback::looking_at_object_index
bool lexical_feedback::looking_at_parameter_list

Definition at line 322 of file lex.h.

Referenced by octave_base_parser::recover_from_parsing_function(), and reset().

bool lexical_feedback::looking_at_return_list
bool lexical_feedback::looking_for_object_index
int lexical_feedback::looping
bool lexical_feedback::maybe_classdef_get_set_method

Definition at line 352 of file lex.h.

Referenced by octave_base_lexer::is_keyword_token(), and reset().

bbp_nesting_level lexical_feedback::nesting_level
std::stack<bool> lexical_feedback::parsed_function_name
bool lexical_feedback::parsing_class_method

Definition at line 344 of file lex.h.

Referenced by octave_base_parser::frob_function(), parse_fcn_file(), and reset().

bool lexical_feedback::parsing_classdef

Definition at line 347 of file lex.h.

Referenced by octave_base_lexer::is_keyword_token(), and reset().

bool lexical_feedback::parsing_classdef_get_method

Definition at line 355 of file lex.h.

Referenced by reset().

bool lexical_feedback::parsing_classdef_set_method

Definition at line 358 of file lex.h.

Referenced by reset().

std::set<std::string> lexical_feedback::pending_local_variables
bool lexical_feedback::quote_is_transpose

Definition at line 361 of file lex.h.

bool lexical_feedback::reading_classdef_file
bool lexical_feedback::reading_fcn_file
bool lexical_feedback::reading_script_file
int lexical_feedback::string_column

Definition at line 421 of file lex.h.

Referenced by octave_base_lexer::begin_string(), and reset().

int lexical_feedback::string_line

Definition at line 420 of file lex.h.

Referenced by octave_base_lexer::begin_string(), and reset().

std::string lexical_feedback::string_text

Definition at line 417 of file lex.h.

Referenced by reset().

symbol_table_context lexical_feedback::symtab_context
size_t lexical_feedback::token_count
token_cache lexical_feedback::tokens

The documentation for this class was generated from the following files: