public void Insert(string lex, Tokens token, int depth, EntryType type) { TableNode node = new TableNode { Token = token, Depth = depth, Lexeme = new Lexeme(lex) }; //check for duplicates var hash = Hash(lex); CheckForDupes(hash, lex, depth); _table[(int)hash].AddFirst(node); }
public void AddFunction(TableNode node) { Functions.AddLast(node); }