code: function peek(tok) {
          if (typeof(tok) === 'string') {
              return input.charAt(i) === tok;
          } else {
              return tok.test(current);
          }
      }
docs: Same as $(), but don't change the state of the parser, just return the match.