Example #1
0
        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);
        }
Example #2
0
 public void AddFunction(TableNode node)
 {
     Functions.AddLast(node);
 }