code: function add(table, inp, state, action, next) {
          table[state<<8|inp] = ((action | 0) << 4) | ((next === undefined) ? state : next);
      }
docs: Add a transition to the transition table.
  
  @param table - table to add transition
  @param {number} inp - input character code
  @param {number} state - current state
  @param {number=} action - action to be taken
  @param {number=} next - next state