Function __global->precedence_sort

Definitions

sources/webstandards_js_parse.php

  • Sort an unordered structure of operations into a precedence tree.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: array

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$op_list array No No required parameter N/A N/A Ops in

Returns

  • Ops out
  • Type: array
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Sort an unordered structure of operations into a precedence tree.
 *
 * @param  array $op_list Ops in
 * @return array Ops out
 */

function precedence_sort(array $op_list) : array