GNU Octave  3.8.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
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
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 4527 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  )

Reimplemented in octave_base_lexer.

Definition at line 4533 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 4662 of file lex.cc.

References pending_local_variables.

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 4639 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 390 of file lex.h.

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

int lexical_feedback::braceflag

Definition at line 378 of file lex.h.

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

int lexical_feedback::bracketflag

Definition at line 375 of file lex.h.

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

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

Definition at line 397 of file lex.h.

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

int lexical_feedback::defining_func

Definition at line 384 of file lex.h.

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

bool lexical_feedback::end_of_input

Definition at line 307 of file lex.h.

Referenced by main_loop(), and reset().

std::string lexical_feedback::fcn_file_full_name
std::string lexical_feedback::fcn_file_name

Definition at line 413 of file lex.h.

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

bool lexical_feedback::force_script

Definition at line 357 of file lex.h.

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

std::string lexical_feedback::help_text

Definition at line 403 of file lex.h.

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

int lexical_feedback::input_line_number
bool lexical_feedback::looking_at_anon_fcn_args

Definition at line 314 of file lex.h.

Referenced by reset().

bool lexical_feedback::looking_at_decl_list

Definition at line 324 of file lex.h.

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

int lexical_feedback::looking_at_function_handle

Definition at line 387 of file lex.h.

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

bool lexical_feedback::looking_at_indirect_ref

Definition at line 339 of file lex.h.

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

bool lexical_feedback::looking_at_initializer_expression

Definition at line 328 of file lex.h.

Referenced by reset().

bool lexical_feedback::looking_at_matrix_or_assign_lhs

Definition at line 332 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 320 of file lex.h.

Referenced by reset().

bool lexical_feedback::looking_at_return_list

Definition at line 317 of file lex.h.

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

bool lexical_feedback::looking_for_object_index
int lexical_feedback::looping

Definition at line 381 of file lex.h.

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

bool lexical_feedback::maybe_classdef_get_set_method

Definition at line 347 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

Definition at line 425 of file lex.h.

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

bool lexical_feedback::parsing_class_method

Definition at line 342 of file lex.h.

Referenced by reset().

bool lexical_feedback::parsing_classdef

Definition at line 350 of file lex.h.

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

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

Definition at line 353 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 410 of file lex.h.

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

int lexical_feedback::string_line

Definition at line 409 of file lex.h.

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

std::string lexical_feedback::string_text

Definition at line 406 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: