---------------------------------------------------------------------------------
| 25 | |
| 26 | //--------------------------------------------------------------------------------- |
| 27 | AST::INode* SymbolTable::getVariable( const String& name ) const |
| 28 | { |
| 29 | SymbolTable::VariableMap::const_iterator it = findVariable(name); |
| 30 | if ( it != mVariables.end() ) |
| 31 | { |
| 32 | return it->second; |
| 33 | } |
| 34 | |
| 35 | //variable not found |
| 36 | return 0; |
| 37 | } |
| 38 | |
| 39 | //--------------------------------------------------------------------------------- |
| 40 | AST::INode* SymbolTable::removeVariable( const String& name ) |