GNU Octave  6.2.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
octave::lexical_feedback::bbp_nesting_level Class Reference

#include "lex.h"

Collaboration diagram for octave::lexical_feedback::bbp_nesting_level:

Public Member Functions

 bbp_nesting_level (const bbp_nesting_level &nl)
 
 bbp_nesting_level (void)
 
 ~bbp_nesting_level (void)=default
 
void anon_fcn_body (void)
 
void brace (void)
 
void bracket (void)
 
void clear (void)
 
bool is_anon_fcn_body (void)
 
bool is_brace (void)
 
bool is_bracket (void)
 
bool is_bracket_or_brace (void)
 
bool is_paren (void)
 
bool none (void)
 
bbp_nesting_leveloperator= (const bbp_nesting_level &nl)
 
void paren (void)
 
void remove (void)
 
void reset (void)
 

Private Types

enum  bracket_type { BRACKET = 1 , BRACE = 2 , PAREN = 3 , ANON_FCN_BODY = 4 }
 

Private Attributes

std::stack< int > m_context
 

Detailed Description

Definition at line 92 of file lex.h.

Member Enumeration Documentation

◆ bracket_type

Enumerator
BRACKET 
BRACE 
PAREN 
ANON_FCN_BODY 

Definition at line 96 of file lex.h.

Constructor & Destructor Documentation

◆ bbp_nesting_level() [1/2]

octave::lexical_feedback::bbp_nesting_level::bbp_nesting_level ( void  )
inline

Definition at line 106 of file lex.h.

◆ bbp_nesting_level() [2/2]

octave::lexical_feedback::bbp_nesting_level::bbp_nesting_level ( const bbp_nesting_level nl)
inline

Definition at line 108 of file lex.h.

◆ ~bbp_nesting_level()

octave::lexical_feedback::bbp_nesting_level::~bbp_nesting_level ( void  )
default

Member Function Documentation

◆ anon_fcn_body()

void octave::lexical_feedback::bbp_nesting_level::anon_fcn_body ( void  )
inline

Definition at line 146 of file lex.h.

◆ brace()

void octave::lexical_feedback::bbp_nesting_level::brace ( void  )
inline

Definition at line 132 of file lex.h.

◆ bracket()

void octave::lexical_feedback::bbp_nesting_level::bracket ( void  )
inline

Definition at line 125 of file lex.h.

◆ clear()

void octave::lexical_feedback::bbp_nesting_level::clear ( void  )
inline

Definition at line 167 of file lex.h.

◆ is_anon_fcn_body()

bool octave::lexical_feedback::bbp_nesting_level::is_anon_fcn_body ( void  )
inline

Definition at line 148 of file lex.h.

◆ is_brace()

bool octave::lexical_feedback::bbp_nesting_level::is_brace ( void  )
inline

Definition at line 134 of file lex.h.

Referenced by octave::base_lexer::whitespace_is_significant().

◆ is_bracket()

bool octave::lexical_feedback::bbp_nesting_level::is_bracket ( void  )
inline

Definition at line 127 of file lex.h.

Referenced by octave::base_lexer::whitespace_is_significant().

◆ is_bracket_or_brace()

bool octave::lexical_feedback::bbp_nesting_level::is_bracket_or_brace ( void  )
inline

Definition at line 153 of file lex.h.

◆ is_paren()

bool octave::lexical_feedback::bbp_nesting_level::is_paren ( void  )
inline

Definition at line 141 of file lex.h.

◆ none()

bool octave::lexical_feedback::bbp_nesting_level::none ( void  )
inline

◆ operator=()

bbp_nesting_level& octave::lexical_feedback::bbp_nesting_level::operator= ( const bbp_nesting_level nl)
inline

Definition at line 112 of file lex.h.

References m_context.

◆ paren()

void octave::lexical_feedback::bbp_nesting_level::paren ( void  )
inline

Definition at line 139 of file lex.h.

◆ remove()

void octave::lexical_feedback::bbp_nesting_level::remove ( void  )
inline

Definition at line 161 of file lex.h.

Referenced by octave::base_lexer::handle_close_bracket().

◆ reset()

void octave::lexical_feedback::bbp_nesting_level::reset ( void  )
inline

Definition at line 123 of file lex.h.

Referenced by octave::lexical_feedback::reset().

Member Data Documentation

◆ m_context

std::stack<int> octave::lexical_feedback::bbp_nesting_level::m_context
private

Definition at line 175 of file lex.h.

Referenced by operator=().


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