Bond 0.9
C++ Bond Runtime Library API Documentation
|
A heirarchical symbol table used by the Bond compiler. More...
#include <bond/compiler/symboltable.h>
Public Member Functions | |
SymbolTable () | |
Symbol * | GetGlobalScope () |
Returns the Symbol for the global scope namespace. More... | |
const Symbol * | GetGlobalScope () const |
Returns the Symbol for the global scope namespace. More... | |
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.
|
inline |
|
inline |
Returns the Symbol for the global scope namespace.
|
inline |
Returns the Symbol for the global scope namespace.