def insert(result)
      # puts "insert called with #{result}"
      tabindex = Marshal.dump(@state)
      if @table[tabindex].has_key?(result)
        @table[tabindex][result] += 1
      else
        @table[tabindex][result] = 1
      end
      # puts "table #{@table.inspect}"
      next_state(result)
    end
def insert(result)
      # puts "insert called with #{result}"
      tabindex = Marshal.dump(@state)
      if @table[tabindex].has_key?(result)
        @table[tabindex][result] += 1
      else
        @table[tabindex][result] = 1
      end
      # puts "table #{@table.inspect}"
      next_state(result)
    end
given the next token of input add it to the
 table