/// <summary> /// Find Symbol in Symbol table if exist return Symbol code or add in Symbol table /// </summary> /// <param name="SymbolName"></param> /// <param name="SymbolCode"></param> /// <returns></returns> public int FindSymbolInSymbolTable(string SymbolName, int SymbolCode) { if (MainTable.Count != 0) { if (!SortedTable.ContainsKey(SymbolName)) { return(Add(SymbolName, SymbolCode)); } else { return(SortedTable[SymbolName]); } } else { return(Add(SymbolName, SymbolCode)); } }