Bond 0.9
C++ Bond Runtime Library API Documentation
Loading...
Searching...
No Matches
Bond::SymbolTable Class Reference

A heirarchical symbol table used by the Bond compiler. More...

#include <bond/compiler/symboltable.h>

Public Member Functions

 SymbolTable ()
 
SymbolGetGlobalScope ()
 Returns the Symbol for the global scope namespace. More...
 
const SymbolGetGlobalScope () const
 Returns the Symbol for the global scope namespace. More...
 

Detailed Description

A heirarchical symbol table used by the Bond compiler.

A SymbolTable is a data structure used by the SemanticAnalyzer to index and look up information about all identifiers it encounters during its analysis of Bond source code. The symbols are indexed heirarchically according to the nesting of scopes in which they appear (e.g. namespaces, struct declarations, local scopes and so forth). Since symbols representing scopes contain the index for the symbols declared within their scope, the SymbolTable is little more than a container for a single anonymous namespace called the global scope.

See also
SemanticAnalyzer, Symbol

Constructor & Destructor Documentation

◆ SymbolTable()

Bond::SymbolTable::SymbolTable ( )
inline

Member Function Documentation

◆ GetGlobalScope() [1/2]

Symbol * Bond::SymbolTable::GetGlobalScope ( )
inline

Returns the Symbol for the global scope namespace.

◆ GetGlobalScope() [2/2]

const Symbol * Bond::SymbolTable::GetGlobalScope ( ) const
inline

Returns the Symbol for the global scope namespace.


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