Beispiel #1
0
        /// <sumamry>
        /// add a symbol for a value, like a const or a enumerator of an enumeration.
        /// </summary>
        /// <exception cref="ScopeException">thrown, when trying to redefine symbol</exception>
        public void addSymbolValue(String symbolName)
        {
            if (m_symbols.ContainsKey(symbolName))
            {
                throw new ScopeException("symbol redifined: " + symbolName);
            }
            Symbol newSymbol = new SymbolValue(symbolName, this);

            m_symbols[symbolName] = newSymbol;
        }
Beispiel #2
0
 /// <sumamry>
 /// add a symbol for a value, like a const or a enumerator of an enumeration.
 /// </summary>
 /// <exception cref="ScopeException">thrown, when trying to redefine symbol</exception>
 public void addSymbolValue(String symbolName) {
     if (m_symbols.ContainsKey(symbolName)) {
         throw new ScopeException("symbol redifined: " + symbolName);
     }
     Symbol newSymbol = new SymbolValue(symbolName, this);
     m_symbols[symbolName] = newSymbol;
 }