function startsWith(re, lexeme) {
    const match = re && re.exec(lexeme);
    return match && match.index === 0;
  }
Does lexeme start with a regular expression match at the beginning
@param {RegExp} re
@param {string} lexeme