Jingoo.Jg_runtimeBuiltin functions, value lookup and context initialization.
val jg_nth : Jg_types.tvalue -> Jg_types.tvalue -> Jg_types.tvaluejg_nth n seq returns the n-th value of sequence seq
val jg_escape_html : Jg_types.tvalue -> Jg_types.tvaluejg_escape_html x escape x string representation using Jg_utils.escape_html
val jg_test_defined : Jg_types.context -> string -> Jg_types.tvalueval jg_test_undefined : Jg_types.context -> string -> Jg_types.tvalueval jg_test_none : Jg_types.context -> string -> Jg_types.tvalueAlias for jg_test_undefined
val jg_test_obj_defined :
Jg_types.context ->
string ->
string ->
Jg_types.tvalueval jg_test_obj_undefined :
Jg_types.context ->
string ->
string ->
Jg_types.tvalueval jg_test_escaped : Jg_types.context -> Jg_types.tvalueFIXME: this should check the value and not the context
val jg_negative : Jg_types.tvalue -> Jg_types.tvalueval jg_is_true : Jg_types.tvalue -> boolval jg_not : Jg_types.tvalue -> Jg_types.tvalueval jg_plus : Jg_types.tvalue -> Jg_types.tvalue -> Jg_types.tvaluejg_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.tvalueval jg_times : Jg_types.tvalue -> Jg_types.tvalue -> Jg_types.tvalueval jg_power : Jg_types.tvalue -> Jg_types.tvalue -> Jg_types.tvalueval jg_div : Jg_types.tvalue -> Jg_types.tvalue -> Jg_types.tvalueval jg_mod : Jg_types.tvalue -> Jg_types.tvalue -> Jg_types.tvalueval jg_and : Jg_types.tvalue -> Jg_types.tvalue -> Jg_types.tvaluejg_or e1 e2 The boolean and.
val jg_or : Jg_types.tvalue -> Jg_types.tvalue -> Jg_types.tvaluejg_or e1 e2 The boolean or.
val jg_compare : Jg_types.tvalue -> Jg_types.tvalue -> Jg_types.tvaluejg_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.