Function __global->webstandards_js_lex

Definitions

sources/webstandards_js_lex.php

  • Lex some JavaScript code.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: array

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$text string No No required parameter N/A N/A The code

Returns

  • List of lexed tokens
  • Type: array
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Lex some JavaScript code.
 *
 * @param  string $text The code
 * @return array List of lexed tokens
 */

function webstandards_js_lex(string $text) : array