package tyxml-syntax

  1. Overview
  2. Docs

Element parsing.

val parse : loc:Ppxlib.Location.t -> parent_lang:Common.lang -> name:Common.name -> attributes:(Common.name * string Common.value) list -> Ppxlib.expression Common.value list -> Ppxlib.expression

parse ~loc ~parent_lang ~name ~attributes children evaluates to a parse tree for applying the TyXML function corresponding to element name to suitable arguments representing attributes and children.

val comment : loc:Ppxlib.Location.t -> lang:Common.lang -> string -> Ppxlib.expression

comment ~loc ~ns s evaluates to a parse tree that represents an XML comment.

val find_assembler : Common.name -> (string * Element_content.assembler) option
OCaml

Innovation. Community. Security.