Sourcetype expr = | Number of float| String of string| Bool of bool| Null| Name of string| This| Array of expr list| Object of (string * expr) list| Function of func| Unary of string * expr| Update of string * bool * expr| Binary of string * expr * expr| Logical of string * expr * expr| Assign of string * expr * expr| Conditional of expr * expr * expr| Member of expr * string| Index of expr * expr| Call of expr * expr list| New of expr * expr list| Regex of string * string
Sourceand func = {name : string option;params : string list;body : stmt list;arrow : bool;
} Sourceand let_kind = | Let_kind| Const_kind| Var_kind
Sourceval number_to_string : float -> string