package GT
Generic programming with extensible transformations
Install
Dune Dependency
Authors
Maintainers
Sources
v0.3.0.zip
sha256=58aa091948383ffa6c452b89880becae980ae32cc3a4969fe1c636e46810db69
sha512=ee878ba4c2ee16f5b77f4b4e98664d53e91b7a710b9162905b9a43118a03e9c0d7b378a13e104e16a84556bca1176026d93f11934d69eecb459b771e9340ffd7
doc/GT.common/GTCommon/Plugin_intf/index.html
Module GTCommon.Plugin_intf
Base class type that all trait should follow.
For single type declaration
type ('a, 'b, ...) typ = ...
plugin generate a plugin class called traitnname_typ_t
and a transformation function called traitname_t
.
Generated transformation functions can make use of inherited attribute for type parameter (which is being generated by method typ_g#inh_of_param
) or simply ignore it. For example, transformation function for type parameter 'a
can have types either 'a -> 'sa
(see plugins Show
and Gmap
as examples) or 'ia -> 'a -> 'sa
.
type plugin_args = (Ppxlib.longident * Ppxlib.expression) list
A type that stores additional arguments passed to each plugin.
class virtual ['loc, 'exp, 'typ, 'type_arg, 'ctf, 'cf, 'str, 'sign] typ_g : object ... end
Base class type for all plugins.
module Make (AstHelpers : GTHELPERS_sig.S) : sig ... end
Functor that takes AST construction functions for a specific backend and constructs a plugin object.
module type MAKE = functor (AstHelpers : GTHELPERS_sig.S) -> sig ... end
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>