package tyxml-syntax

  1. Overview
  2. Docs

Module Tyxml_syntax.CommonSource

Sourceval find : ('a -> bool) -> 'a list -> 'a option

Similar to List.find, but evaluates to an option instead of raising Not_found.

Markup language

Sourcetype lang =
  1. | Html
  2. | Svg
Sourceval lang : lang -> string
Sourceval implementation : lang -> string
Sourceval set_implementation : lang -> string -> unit
Sourcetype name = lang * string
Sourceval make : loc:Ppxlib.Location.t -> lang -> string -> Ppxlib.expression

Expression helpers.

Sourceval string : Ppxlib.Location.t -> string -> Ppxlib.expression

wrap implementation loc e creates a parse tree for implementation.Xml.W.return e.

Sourcetype 'a value =
  1. | Val of 'a
  2. | Antiquot of Ppxlib.expression
Sourceval map_value : ('a -> 'b) -> 'a value -> 'b value
Sourceval value : 'a -> 'a value
Sourceval antiquot : Ppxlib.expression -> _ value
Sourceval error : Ppxlib.Location.t -> ('b, Format.formatter, unit, 'a) format4 -> 'b
Sourceval txt : loc:Ppxlib.Location.t -> lang:lang -> string -> Ppxlib.expression