package GT

  1. Overview
  2. Docs
Generic programming with extensible transformations

Install

Dune Dependency

Authors

Maintainers

Sources

v0.4.2.tar.gz
sha256=d23fb8e20ca28ec9ae07feee45b39aee8fb87ab11ec55211e2365f2c5a1c4ccf
sha512=0ade04e78a4d8e24acf24d3e4cdf358532d68284fa8e801b25bdf21c3c0483bb97d1350e86abcf9f93efec870b07f0f067a5dccae81686b14265baab3a4e7c13

doc/enum/Enum/Genum/index.html

Module Enum.Genum

Enum plugin: converts constructor name to integer. Constructor arguments are not taken to account.

Synthetized attribute is int.

Inherited attributes' type (both default and for type parameters) is unit.

For type declaration type ('a,'b,...) typ = ... it will create transformation function with type

('a -> int) -> ('b -> int) -> ... -> ('a,'b,...) typ -> int

See also: Compare plugin.

val trait_name : string
module Make (AstHelpers : GTCommon.GTHELPERS_sig.S) : sig ... end
val register : unit -> unit
OCaml

Innovation. Community. Security.