Module Oq.EvalSource

Sourcemodule Ast = Query.Ast
Sourcetype error =
  1. | Query_parse_error of Query.error
  2. | Eval_error of string
Sourceexception Failure of string
Sourceval failf : ('a, unit, string, 'b) format4 -> 'a
Sourcemodule Value : sig ... end
Sourcemodule Date_context : sig ... end
Sourcemodule Runtime : sig ... end
Sourceval section_of_heading : Org.heading -> Value.t
Sourceval canonical_section_candidate : Org.heading -> Diagnostic.section_candidate
Sourceval type_name : Value.t -> string
Sourceval as_list : Value.t -> Value.t list
Sourceval as_string : Value.t -> string
Sourceval as_bool : Value.t -> bool
Sourceval selector_arg_expr_exn : string -> int -> Ast.selector_arg -> Ast.expr
Sourceval selector_arg_string_exn : string -> int -> Ast.selector_arg -> string
Sourceval selector_arg_int_exn : string -> int -> Ast.selector_arg -> int
Sourceval selector_arg_span_exn : string -> int -> Ast.selector_arg -> int * int
Sourceval planning_kind_to_string : Org.planning_kind -> string
Sourceval block_kind_to_string : Org.block_kind -> string
Sourceval source_field_value : Org.Source_ref.t -> string -> Value.t
Sourceval parse_section_title_query_prefix : string -> int option * string
Sourceval parse_section_title_query_span : string -> string * (int * int) option
Sourceval heading_field_value : Runtime.t -> Org.heading -> string -> Value.t
Sourceval field_value : Runtime.t -> Value.t -> string -> Value.t
Sourceval float_of_numeric : Value.t -> float
Sourceval eval_comparison : Ast.comparison_op -> Value.t -> Value.t -> Value.t
Sourceval compile_regex : string -> string -> Re2.t
Sourceval parse_regex_literal : string -> (string * string) option
Sourceval timestamp_time_pattern : Re2.t
Sourceval parse_org_timestamp : zone:Core__.Zone.t -> string -> Time_float_unix.t option
Sourceval heading_is_done : Org.t -> Org.heading -> bool
Sourceval heading_is_open : Org.t -> Org.heading -> bool
Sourceval heading_values_from_id_set : Org.t -> int Core.Hash_set.t -> Value.t list
Sourceval eval_expr : Runtime.t -> Value.t -> Ast.expr -> Value.t
Sourceval eval_predicate : Runtime.t -> Value.t -> Ast.predicate -> bool
Sourceval apply_selector : Runtime.t -> Ast.selector -> Value.t -> Value.t
Sourceval apply_index : 'a list -> int -> 'a
Sourceval normalize_slice_bound : int -> int option -> int -> int
Sourceval apply_slice : Value.t Core.List.t -> Base.Int.t option -> Base.Int.t option -> Value.t
Sourceval apply_field : Runtime.t -> Value.t -> string -> Value.t
Sourceval apply_postfix : Runtime.t -> Value.t -> Ast.postfix -> Value.t
Sourceval apply_function : Runtime.t -> Ast.function_stage -> Value.t -> Value.t
Sourceval apply_stage : Runtime.t -> Ast.stage -> Value.t -> Value.t
Sourceval eval : ?now:string -> ?tz:string -> doc:Org.t -> Ast.stage list -> Value.t
Sourceval run : ?now:string -> ?tz:string -> doc:Org.t -> string -> (Value.t, error) Core._result
Sourceval render_scalar : Value.t -> Base.String.t
Sourceval render_text : Value.t -> Base.String.t
Sourceval run_text : ?now:string -> ?tz:string -> doc:Org.t -> string -> (Base.String.t, string) Core._result