Module Cduce_types__AtomSet.V
A module for manipulating atom Values.
type value= Ns.QName.tAn alias type for convenience. Atoms correspond to qualified names with a namespace and a local part (e.g.
`xhtml:div, withxhtmlbeing bound to the namespacehttp://www.w3.org/1999/xhtml). Of course for the most common case (e.g.`nil,`true,`false) the namespace is empty.
val mk_ascii : string -> tmk_ascii acreates an atom with an empty namespace. It does not perform any check ona, for instancemk_ascii "hello:world"creates an atom with an empty namespace and an (illegal) namehello:world(herehello:is made part of the local name.).
val get_ascii : t -> stringget_ascii areturns the local name of an atom.
Formatting functions
val print : Stdlib.Format.formatter -> t -> unitprint fmt aprints an atom to the specified formatter.
val to_string : t -> stringto_string aconverts the atom to string
val print_quote : Stdlib.Format.formatter -> t -> unitprint fmt aprints an atom to the specified formatter in ℂDuce syntax.