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

#include "lex.h"

Collaboration diagram for 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)
 
std::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()

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

Definition at line 62 of file lex.h.

◆ ~symbol_table_context()

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

Definition at line 65 of file lex.h.

Member Function Documentation

◆ clear()

void lexical_feedback::symbol_table_context::clear ( void  )

Definition at line 5075 of file lex.cc.

References m_frame_stack.

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

◆ curr_scope()

◆ empty()

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

Definition at line 69 of file lex.h.

◆ parent_scope()

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

Definition at line 5100 of file lex.cc.

Referenced by base_parser::make_anon_fcn_handle().

◆ pop()

void lexical_feedback::symbol_table_context::pop ( void  )

◆ push()

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

Definition at line 75 of file lex.h.

Referenced by octave_push_parse(), and base_parser::push_fcn_symtab().

◆ size()

std::size_t 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> lexical_feedback::symbol_table_context::m_frame_stack
private

Definition at line 87 of file lex.h.

Referenced by clear().

◆ m_interpreter

interpreter& 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: