6.1 Module MLast: abstract syntax tree
This library module is accessible, but not documented. The creation of
abstract syntax tree nodes must be done using quotations, defined in
the file q_MLast.cmo. See appendix A.
However, some functions are provided to access the ``location'' field
in nodes. They are:
-
loc_of_expr for expressions.
loc_of_patt for patterns.
loc_of_ctyp for types.
loc_of_module_type for module types.
loc_of_module_expr for module expressions.
loc_of_sig_item for signature items.
loc_of_str_item for structure items.
loc_of_phrase for phrases.