Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Builtin functions, value lookup and context initialization.
val jg_nth : Jg_types.tvalue -> Jg_types.tvalue -> Jg_types.tvalue
jg_nth n seq
returns the n
-th value of sequence seq
val jg_escape_html : Jg_types.tvalue -> Jg_types.tvalue
jg_escape_html x
escape x
string representation using Jg_utils.escape_html
val jg_test_defined : Jg_types.context -> string -> Jg_types.tvalue
val jg_test_undefined : Jg_types.context -> string -> Jg_types.tvalue
val jg_test_none : Jg_types.context -> string -> Jg_types.tvalue
Alias for jg_test_undefined
val jg_test_obj_defined :
Jg_types.context ->
string ->
string ->
Jg_types.tvalue
val jg_test_obj_undefined :
Jg_types.context ->
string ->
string ->
Jg_types.tvalue
val jg_test_escaped : Jg_types.context -> Jg_types.tvalue
FIXME: this should check the value and not the context
val jg_negative : Jg_types.tvalue -> Jg_types.tvalue
val jg_is_true : Jg_types.tvalue -> bool
val jg_not : Jg_types.tvalue -> Jg_types.tvalue
val jg_plus : Jg_types.tvalue -> Jg_types.tvalue -> Jg_types.tvalue
jg_plus a b
The multi-purpose +
operator. Can add two numbers, concat two strings or a string and a number, append two sequences (list or array).
val jg_minus : Jg_types.tvalue -> Jg_types.tvalue -> Jg_types.tvalue
val jg_times : Jg_types.tvalue -> Jg_types.tvalue -> Jg_types.tvalue
val jg_power : Jg_types.tvalue -> Jg_types.tvalue -> Jg_types.tvalue
val jg_div : Jg_types.tvalue -> Jg_types.tvalue -> Jg_types.tvalue
val jg_mod : Jg_types.tvalue -> Jg_types.tvalue -> Jg_types.tvalue
val jg_and : Jg_types.tvalue -> Jg_types.tvalue -> Jg_types.tvalue
jg_or e1 e2
The boolean and
.
val jg_or : Jg_types.tvalue -> Jg_types.tvalue -> Jg_types.tvalue
jg_or e1 e2
The boolean or
.
val jg_compare : Jg_types.tvalue -> Jg_types.tvalue -> Jg_types.tvalue
jg_compare x y
returns 0
if x
is equal to y
, a negative integer if x
is less than y
, and a positive integer if x
is greater than y
.