package forester

  1. Overview
  2. Docs
module MethodTable : sig ... end
module Text_modifier : sig ... end
type modifier = Text_modifier.t
type node =
  1. | Text of string
  2. | Verbatim of string
  3. | Transclude of transclusion_opts * Base.addr
  4. | Subtree of transclusion_opts * tree
  5. | Query_tree of transclusion_opts * query
  6. | Xml_tag of Base.xml_resolved_qname * (Base.xml_resolved_qname * t) list * t
  7. | TeX_cs of TeX_cs.t
  8. | Math of Base.math_mode * t
  9. | Embed_tex of embedded_tex
  10. | Img of string
  11. | Prim of Prim.t * t
  12. | Ref of Base.addr
and embedded_tex = {
  1. preamble : t;
  2. source : t;
}
and transclusion_opts = {
  1. toc : bool;
  2. show_heading : bool;
  3. show_metadata : bool;
  4. title_override : t option;
  5. taxon_override : string option;
  6. expanded : bool;
  7. numbered : bool;
}
and t = node Range.located list
and tree = {
  1. fm : frontmatter;
  2. bm : backmatter_section list;
  3. body : t;
}
and frontmatter = {
  1. title : t option;
  2. taxon : string option;
  3. authors : Base.addr list;
  4. contributors : Base.addr list;
  5. dates : Forester_prelude.Date.t list;
  6. addr : Base.addr;
  7. metas : (string * t) list;
  8. tags : string list;
  9. physical_parent : Base.addr option;
  10. designated_parent : Base.addr option;
  11. source_path : string option;
  12. number : string option;
}
and backmatter_section =
  1. | Backmatter_section of {
    1. title : t;
    2. query : query;
    }
and value =
  1. | VContent of t
  2. | VQuery_polarity of Query.polarity
  3. | VQuery_mode of Query.mode
  4. | VQuery of query
  5. | VSym of Symbol.t
  6. | VObject of Symbol.t
  7. | VAddr of Base.addr
and query =
  1. | Rel of Query.rel_query * Base.addr
  2. | Isect of query list
  3. | Union of query list
  4. | Complement of query
  5. | Isect_fam of query * query_clo
  6. | Union_fam of query * query_clo
and query_clo =
  1. | QClo_rel of Query.rel_query
val show_embedded_tex : embedded_tex -> Ppx_deriving_runtime.string
val show_transclusion_opts : transclusion_opts -> Ppx_deriving_runtime.string
val show_frontmatter : frontmatter -> Ppx_deriving_runtime.string
val show_backmatter_section : backmatter_section -> Ppx_deriving_runtime.string
val show_query_clo : query_clo -> Ppx_deriving_runtime.string
type obj_method = {
  1. body : Syn.t;
  2. self : Symbol.t;
  3. super : Symbol.t;
  4. env : value Stdlib__Map.Make(Symbol).t;
}
type obj = {
  1. prototype : Symbol.t option;
  2. methods : obj_method MethodTable.t;
}
val is_whitespace : node Range.located -> bool
val strip_whitespace : node Range.located list -> node Range.located list
val trim_whitespace : node Range.located list -> node Range.located list
val sentence_case : node Range.located list -> node Range.located list
val apply_modifier : Text_modifier.t -> node Range.located list -> node Range.located list
val string_of_nodes : t -> string

Best-effort rendering of a nodes as a string, to use in text-only contexts.

module Util : sig ... end
module Query : sig ... end
val empty_frontmatter : addr:Base.addr -> frontmatter
val default_backmatter : addr:Base.addr -> backmatter_section list
val empty_tree : addr:Base.addr -> tree
val default_transclusion_opts : transclusion_opts
val extract_content : value Range.located -> t
val extract_query_clo : value Range.located -> query_clo
val extract_string : value Range.located -> string
val extract_obj_ptr : value Range.located -> Symbol.t
val extract_sym : value Range.located -> Symbol.t
val extract_query_node : value Range.located -> query
val extract_query_polarity : value Range.located -> Query.polarity
val extract_query_mode : value Range.located -> Query.mode
val extract_addr : value Range.located -> Base.addr
OCaml

Innovation. Community. Security.