12345678910111213141516171819202122232425262728293031# 1 "template/hegel_template.fallback.ml"(* Upstream OCaml has no [ppx_template]. This rewriter keeps each
[let%template] and [val%template] item and removes the marker. The compiler
ignores the [[@mode]] attributes that remain. *)openPpxlibletstructure_item=Extension.V3.declare"template"Extension.Context.structure_itemAst_pattern.(pstr(__^::nil))(fun~ctxt:_item->item);;letsignature_item=Extension.V3.declare"template"Extension.Context.signature_itemAst_pattern.(psig(__^::nil))(fun~ctxt:_item->item);;let()=Driver.register_transformation"hegel_template"~rules:[Context_free.Rule.extensionstructure_item;Context_free.Rule.extensionsignature_item];;