Esempio n. 1
0
 public void AddImport(ScopedSymbol ns)
 {
     if (imports == null)
     {
         imports = new List <ScopedSymbol>();
     }
     imports.Add(ns);
 }
Esempio n. 2
0
 public void AddTypedef(Name alias, ScopedSymbol symbol)
 {
     if (this.SymbolTable.ContainsKey(alias))
     {
         throw new SymbolAlreadyDefinedException(symbol.Name);
     }
     else
     {
         this.SymbolTable[alias] = symbol;
     }
 }