public void Add(Symbol symbol) { if (m_symbols.ContainsKey(symbol.Name)) throw new InvalidOperationException(String.Format("Redefinition of symbol {0}", symbol.Name)); m_symbols.Add(symbol.Name, symbol); }
public void AddSymbol(Symbol symbol) { CurrentScope.Add(symbol); }