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

#include "lex.h"

Collaboration diagram for octave::lexical_feedback::symbol_table_context:

Public Member Functions

 symbol_table_context (interpreter &interp)
 
 ~symbol_table_context (void)
 
void clear (void)
 
symbol_scope curr_scope (void) const
 
bool empty (void) const
 
symbol_scope parent_scope (void) const
 
void pop (void)
 
void push (const symbol_scope &scope)
 
size_t size (void) const
 

Private Attributes

std::deque< symbol_scopem_frame_stack
 
interpreterm_interpreter
 

Detailed Description

Definition at line 58 of file lex.h.

Constructor & Destructor Documentation

◆ symbol_table_context()

octave::lexical_feedback::symbol_table_context::symbol_table_context ( interpreter interp)
inline

Definition at line 62 of file lex.h.

◆ ~symbol_table_context()

octave::lexical_feedback::symbol_table_context::~symbol_table_context ( void  )
inline

Definition at line 65 of file lex.h.

Member Function Documentation

◆ clear()

void octave::lexical_feedback::symbol_table_context::clear ( void  )

Definition at line 5028 of file lex.cc.

References m_frame_stack.

Referenced by octave::lexical_feedback::reset(), and octave::base_lexer::reset().

◆ curr_scope()

◆ empty()

bool octave::lexical_feedback::symbol_table_context::empty ( void  ) const
inline

Definition at line 69 of file lex.h.

◆ parent_scope()

symbol_scope octave::lexical_feedback::symbol_table_context::parent_scope ( void  ) const

Definition at line 5053 of file lex.cc.

Referenced by octave::base_parser::make_anon_fcn_handle().

◆ pop()

void octave::lexical_feedback::symbol_table_context::pop ( void  )

◆ push()

void octave::lexical_feedback::symbol_table_context::push ( const symbol_scope scope)
inline

Definition at line 75 of file lex.h.

Referenced by octave::base_parser::push_fcn_symtab().

◆ size()

size_t octave::lexical_feedback::symbol_table_context::size ( void  ) const
inline

Definition at line 71 of file lex.h.

Member Data Documentation

◆ m_frame_stack

std::deque<symbol_scope> octave::lexical_feedback::symbol_table_context::m_frame_stack
private

Definition at line 87 of file lex.h.

Referenced by clear().

◆ m_interpreter

interpreter& octave::lexical_feedback::symbol_table_context::m_interpreter
private

Definition at line 85 of file lex.h.


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