Calculator  Step 5
Public Member Functions | List of all members
set_symbol_table Class Reference

#include <variables.hpp>

Public Member Functions

 set_symbol_table (symbol_table const &symtab)
 
 ~set_symbol_table ()
 

Detailed Description

Set a temporary symbol table, for the duration of a single function. When the set_symbol_table object goes out of scope, the local symbol table is no longer in force.

Definition at line 19 of file variables.hpp.

Constructor & Destructor Documentation

set_symbol_table::set_symbol_table ( symbol_table const &  symtab)

Definition at line 26 of file variables.cpp.

27 {
28  symbol_tables.push_back(&locals);
29 }
set_symbol_table::~set_symbol_table ( )

Definition at line 31 of file variables.cpp.

32 {
33  symbol_tables.pop_back();
34 }

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