code: function formatTokenSexp(token) {
    return '(' + token.category + ' ' +
      (token.text === '"' ? "'\"'" : '"' + token.text + '" ' + token.line + ':' + token.col) + ') ';
  }
docs: see e.g. https://en.wikipedia.org/wiki/Lexical_analysis#Tokenization