package tyxml-syntax

  1. Overview
  2. Docs

Element parsing.

val parse : loc:Migrate_parsetree.Ast_408.Location.t -> parent_lang:Common.lang -> name:Common.name -> attributes:(Common.name * string Common.value) list -> Migrate_parsetree.Ast_408.Parsetree.expression Common.value list -> Migrate_parsetree.Ast_408.Parsetree.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:Migrate_parsetree.Ast_408.Location.t -> lang:Common.lang -> string -> Migrate_parsetree.Ast_408.Parsetree.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.