init__js_parse (line 24)
Standard code module initialisation function.
void
init__js_parse
()
js_parse (line 36)
Return parse info for parse type.
?map
js_parse
()
js_parser_error (line 1210)
Give a parse error.
?boolean
js_parser_error
(string $message)
-
string
$message: The error
parser_expect (line 1124)
Expect a token during parsing. Give error if not found. Else give token parameters.
?mixed
parser_expect
(string $token)
-
string
$token: The token we want
parser_next (line 1193)
Find the next token and move on.
?mixed
parser_next
([boolean $all = false])
-
boolean
$all: Whether we want all the token parameters (as opposed to just the first)
parser_peek (line 1149)
Peek to find the next token.
?mixed
parser_peek
([boolean $all = false])
-
boolean
$all: Whether we want all the token parameters (as opposed to just the first)
parser_peek_dist (line 1169)
Peek to find the next token after a distance.
?mixed
parser_peek_dist
(integer $d, [?integer $p = NULL])
-
integer
$d: The distance
-
?integer
$p: Whether to start looking from (NULL: current position in parse)
precedence_sort (line 527)
Sort an unordered structure of operations into a precedence tree.
list
precedence_sort
(list $op_list)
_js_parse_assignment_operator (line 890)
Return parse info for parse type.
?list
_js_parse_assignment_operator
()
_js_parse_cases (line 400)
Return parse info for parse type.
?list
_js_parse_cases
()
_js_parse_command (line 95)
Return parse info for parse type.
?list
_js_parse_command
()
_js_parse_command_actual (line 147)
Return parse info for parse type.
?list
_js_parse_command_actual
()
_js_parse_comma_expressions (line 975)
Return parse info for parse type.
?list
_js_parse_comma_expressions
([boolean $allow_blanks = false])
-
boolean
$allow_blanks: Whether to allow blanks in the list
_js_parse_comma_parameters (line 1060)
Return parse info for parse type.
?list
_js_parse_comma_parameters
([boolean $allow_expressions = true], [string $separator = 'EQUAL'])
-
boolean
$allow_expressions: Whether to allow expressions in this
-
string
$separator: The token that sits as the 'separator' between name and value
_js_parse_comma_variables (line 1012)
Return parse info for parse type.
?list
_js_parse_comma_variables
([boolean $allow_blanks = false])
-
boolean
$allow_blanks: Whether to allow blanks in the list
_js_parse_expression (line 484)
Return parse info for parse type.
?list
_js_parse_expression
()
_js_parse_expression_inner (line 575)
Return parse info for parse type.
?list
_js_parse_expression_inner
()
_js_parse_function_dec (line 459)
Return parse info for parse type.
?list
_js_parse_function_dec
([boolean $anonymous = false])
-
boolean
$anonymous: Whether this is an anonymous function
_js_parse_identify_chain (line 733)
Return parse info for parse type.
?list
_js_parse_identify_chain
(list $variable)
-
list
$variable: The variable
_js_parse_if_rest (line 374)
Return parse info for parse type.
?list
_js_parse_if_rest
()
_js_parse_js (line 51)
Return parse info for parse type.
?map
_js_parse_js
()
_js_parse_literal (line 908)
Return parse info for parse type.
?list
_js_parse_literal
()
_js_parse_parameter (line 1091)
Return parse info for parse type.
?list
_js_parse_parameter
([boolean $allow_expressions = true], [string $separator = 'EQUAL'])
-
boolean
$allow_expressions: Whether to allow expressions in this
-
string
$separator: The token that sits as the 'separator' between name and value
_js_parse_variable (line 799)
Return parse info for parse type.
?list
_js_parse_variable
()
_js_parse_variable_actual (line 821)
Return parse info for parse type.
?list
_js_parse_variable_actual
()