package forester

  1. Overview
  2. Docs

Module Core.SemSource

Sourcemodule MethodTable : sig ... end
Sourcetype node =
  1. | Text of string
  2. | Transclude of transclusion_opts * string
  3. | Subtree of transclusion_opts * tree
  4. | Query of transclusion_opts * t Query.t
  5. | Xml_tag of string * (string * t) list * t
  6. | Unresolved of string
  7. | Math of Core__.Base.math_mode * t
  8. | Embed_tex of {
    1. preamble : t;
    2. source : t;
    }
  9. | Img of {
    1. path : string;
    }
  10. | If_tex of t * t
  11. | Prim of Prim.t * t
  12. | Object of Core__.Symbol.t
  13. | Ref of {
    1. addr : string;
    }
Sourceand 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;
}
Sourceand env
Sourceand tree = {
  1. fm : frontmatter;
  2. body : t;
}
Sourceand frontmatter = {
  1. title : t option;
  2. taxon : string option;
  3. authors : string list;
  4. contributors : string list;
  5. dates : Prelude.Date.t list;
  6. addr : string option;
  7. metas : (string * t) list;
  8. tags : string list;
  9. parent : string option;
  10. source_path : string option;
  11. number : string option;
}
Sourcetype obj_method = {
  1. body : Syn.t;
  2. self : Core__.Symbol.t;
  3. super : Core__.Symbol.t;
  4. env : env;
}
Sourcetype obj = {
  1. prototype : Core__.Symbol.t option;
  2. methods : obj_method MethodTable.t;
}
Sourceval is_whitespace : node Range.located -> bool
Sourceval strip_whitespace : node Range.located list -> node Range.located list
Sourceval trim_whitespace : node Range.located list -> node Range.located list
Sourceval sentence_case : node Range.located list -> node Range.located list
Sourceval apply_modifier : [< `Sentence_case ] option -> node Range.located list -> node Range.located list
Sourceval string_of_nodes : t -> string

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

Sourcemodule Util : sig ... end
Sourcemodule Query : sig ... end
Sourceval empty_frontmatter : frontmatter
OCaml

Innovation. Community. Security.