package xtmpl_ppx

  1. Overview
  2. Docs
val mkloc : 'a -> Location.t -> 'a Location.loc
val lid : Location.t -> string -> Longident.t Location.loc
val error : Location.t -> string -> 'a
val kerror : Location.t -> ('a, unit, string, 'b) format4 -> 'a
module Location = Astlib.Location
module R = Xtmpl.Rewrite
module Xml = Xtmpl.Xml
val string_of_file : string -> string
val file_path : loc:Ocaml_common.Location.t -> string -> string
val read_template : Location.t -> string -> R.tree list
type parameter = {
  1. name : Xml.name;
  2. default : R.tree list option;
  3. typ : [ `CData | `Xmls | `Other of string * string ];
  4. mlname : string option;
}
val string_of_name : (string * string) -> string
val prune_param_atts : R.attributes -> R.attributes
val gather_params : Location.t -> R.tree list -> parameter Xml.Name_map.t * R.tree list
val parse_ocaml_expression : Location.t -> string -> Astlib.Ast_500.Parsetree.expression
val parse_ocaml_type : Location.t -> string -> Astlib.Ast_500.Parsetree.core_type
val to_id : string -> string
val ml_id_of_param : parameter -> string
val map_tmpl : Location.t -> R.tree list -> Ppxlib_ast.Ast.expression
val template_of_inline_string : Location.t -> 'a -> string -> R.tree list
val expand_xtmpl_string : ctxt:Ppxlib.Expansion_context.Extension.t -> string -> Ppxlib_ast.Ast.expression
val expand_xtmpl_type : ctxt:Ppxlib.Expansion_context.Extension.t -> string -> Ppxlib_ast.Ast.core_type
val ext_xtmpl_type : Ppxlib.Extension.V3.t
val ext_xtmpl : Ppxlib.Extension.V3.t
val ext_xtmpl_string : Ppxlib.Extension.V3.t
val rule_xtmpl_type : Ppxlib.Context_free.Rule.t
val rule_xtmpl_string : Ppxlib.Context_free.Rule.t