package ppxlib

  1. Overview
  2. Docs

First class AST patterns

PPX rewriters often need to recognize fragments the OCaml AST, for instance to parse the payload of an attribute/expression. You can do that with a pattern matching and manual error reporting when the input is not what you expect but this has proven to quickly become extremely verbose and unreadable.

This module aims to help with that by providing first class AST patterns.

To understand how to use it, let's consider the example of ppx_inline_test. We want to recognize patterns of the form:

let%test "name" = expr

Which is a syntactic sugar for:

[%%test let "name" = expr]

If we wanted to write a function that recognizes the payload of %%test using normal pattern matching we would write:

let match_payload = function
  | Pstr [ { pstr_desc = Pstr_value (Nonrecursive,
                                     [ { pvb_pat = Ppat_constant (Constant_string
                                                                    (name, None))
                                       ; pvb_expr = e
                                       ; _ } ])
           ; _ } ] ->
    (name, e)
  | _ -> Location.raisef ...

This is quite cumbersome, and this is still not right: this function drops all attributes without notice.

Now let's imagine we wanted to construct the payload instead, using Ast_builder one would write:

let build_payload ~loc name expr =
  let (module B) = Ast_builder.with_loc loc in
  let open B in
  pstr [ pstr_value Nonrecursive (value_binding ~pat:(pstring name) ~expr) ]

Constructing a first class pattern is almost as simple as replacing Ast_builder by Ast_pattern:

let payload_pattern name expr =
  let open Ast_pattern in
  pstr (pstr_value nonrecursive (value_binding ~pat:(pstring __) ~expr:__) ^:: nil)

Notice that the place-holders for name and expr have been replaced by __. The following pattern with have type:

(payload, string -> expression -> 'a, 'a) Ast_pattern.t 

which means that it matches values of type payload and captures a string and expression from it. The two captured elements comes from the use of __.

type ('a, 'b, 'c) t

Type of a pattern:

  • 'a is the type of value matched by the pattern
  • 'b is the continuation, for instance for a pattern that captures an int and a string, 'b will be int -> string -> _
  • 'c is the result of the continuation.
val parse : ('a, 'b, 'c) t -> Location.t -> ?on_error:(Base.Unit.t -> 'c) -> 'a -> 'b -> 'c

Matches a value against a pattern.

module Packed : sig ... end
val __ : ('a, 'a -> 'b, 'b) t

Pattern that captures its input.

val __' : ('a, 'a Loc.t -> 'b, 'b) t

Same as __ but also captures the location.

Note: this should only be used for types that do not embed a location. For instance you can use it to capture a string constant:

estring __'

but using it to capture an expression would not yield the expected result:

pair (eint (int 42)) __'

In the latter case you should use the pexp_loc field of the captured expression instead.

val alt : ('a, 'b, 'c) t -> ('a, 'b, 'c) t -> ('a, 'b, 'c) t

alt stands for `alternatives'. It matches either the first pattern or the second one.

val alt_option : ('a, 'v -> 'b, 'c) t -> ('a, 'b, 'c) t -> ('a, 'v Base.Option.t -> 'b, 'c) t

Same as alt, for the common case where the left-hand-side captures a value but not the right-hand-side.

val (|||) : ('a, 'b, 'c) t -> ('a, 'b, 'c) t -> ('a, 'b, 'c) t

Same as alt

val map : ('a, 'b, 'c) t -> f:('d -> 'b) -> ('a, 'd, 'c) t
val map' : ('a, 'b, 'c) t -> f:(Location.t -> 'd -> 'b) -> ('a, 'd, 'c) t
val map_result : ('a, 'b, 'c) t -> f:('c -> 'd) -> ('a, 'b, 'd) t
val (>>|) : ('a, 'b, 'c) t -> ('d -> 'b) -> ('a, 'd, 'c) t

Same as map

val map0 : ('a, 'b, 'c) t -> f:'v -> ('a, 'v -> 'b, 'c) t
val map1 : ('a, 'v1 -> 'b, 'c) t -> f:('v1 -> 'v) -> ('a, 'v -> 'b, 'c) t
val map2 : ('a, 'v1 -> 'v2 -> 'b, 'c) t -> f:('v1 -> 'v2 -> 'v) -> ('a, 'v -> 'b, 'c) t
val map0' : ('a, 'b, 'c) t -> f:(Location.t -> 'v) -> ('a, 'v -> 'b, 'c) t
val map1' : ('a, 'v1 -> 'b, 'c) t -> f:(Location.t -> 'v1 -> 'v) -> ('a, 'v -> 'b, 'c) t
val map2' : ('a, 'v1 -> 'v2 -> 'b, 'c) t -> f:(Location.t -> 'v1 -> 'v2 -> 'v) -> ('a, 'v -> 'b, 'c) t
val nil : (_ Base.List.t, 'a, 'a) t
val (^::) : ('a, 'b, 'c) t -> ('a Base.List.t, 'c, 'd) t -> ('a Base.List.t, 'b, 'd) t
val many : ('a, 'b -> 'b, 'c) t -> ('a Base.List.t, 'c Base.List.t -> 'd, 'd) t
val int : Base.Int.t -> (Base.Int.t, 'a, 'a) t
val char : Base.Char.t -> (Base.Char.t, 'a, 'a) t
val string : Base.String.t -> (Base.String.t, 'a, 'a) t
val float : Base.Float.t -> (Base.Float.t, 'a, 'a) t
val int32 : Base.Int32.t -> (Base.Int32.t, 'a, 'a) t
val int64 : Base.Int64.t -> (Base.Int64.t, 'a, 'a) t
val nativeint : Base.Nativeint.t -> (Base.Nativeint.t, 'a, 'a) t
val bool : Base.Bool.t -> (Base.Bool.t, 'a, 'a) t
val cst : to_string:('a -> Base.String.t) -> ?equal:('a -> 'a -> Base.Bool.t) -> 'a -> ('a, 'b, 'b) t
val none : (_ Base.Option.t, 'a, 'a) t
val some : ('a, 'b, 'c) t -> ('a Base.Option.t, 'b, 'c) t
val pair : ('a1, 'b, 'c) t -> ('a2, 'c, 'd) t -> ('a1 * 'a2, 'b, 'd) t
val (**) : ('a1, 'b, 'c) t -> ('a2, 'c, 'd) t -> ('a1 * 'a2, 'b, 'd) t
val triple : ('a1, 'b, 'c) t -> ('a2, 'c, 'd) t -> ('a3, 'd, 'e) t -> ('a1 * 'a2 * 'a3, 'b, 'e) t
val loc : ('a, 'b, 'c) t -> ('a Loc.t, 'b, 'c) t
val pack0 : ('a, 'b, 'c) t -> ('a, Base.Unit.t -> 'b, 'c) t
val pack2 : ('a, 'b -> 'c -> 'd, 'e) t -> ('a, ('b * 'c) -> 'd, 'e) t
val pack3 : ('a, 'b -> 'c -> 'd -> 'e, 'f) t -> ('a, ('b * 'c * 'd) -> 'e, 'f) t

AST patterns for each constructur/record of the parsetree are generated in the same way AST builders are generated. In addition, for every t wrapper we generate a pattern to match the loc and attributes fields. For instanct for the expression type:

val pexp_loc
  :  (Location.t, 'a, 'b) t
  -> (expression, 'b, 'c) t
  -> (expression, 'a, 'c) t

val pexp_attributes
  :  (attributes, 'a, 'b) t
  -> (expression, 'b, 'c) t
  -> (expression, 'a, 'c) t
val nolabel : (Ppxlib_ast__.Import.Asttypes.arg_label, 'a, 'a) Ppxlib__.Ast_pattern0.t
val labelled : (string, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Asttypes.arg_label, 'a, 'b) Ppxlib__.Ast_pattern0.t
val optional : (string, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Asttypes.arg_label, 'a, 'b) Ppxlib__.Ast_pattern0.t
val binding_op : op:(string, 'a, 'b) Ppxlib__.Ast_pattern0.t -> pat:(Ppxlib_ast__.Import.Parsetree.pattern, 'b, 'c) Ppxlib__.Ast_pattern0.t -> exp: (Ppxlib_ast__.Import.Parsetree.expression, 'c, 'd) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.binding_op, 'a, 'd) Ppxlib__.Ast_pattern0.t
val case : lhs:(Ppxlib_ast__.Import.Parsetree.pattern, 'a, 'b) Ppxlib__.Ast_pattern0.t -> guard: (Ppxlib_ast__.Import.Parsetree.expression option, 'b, 'c) Ppxlib__.Ast_pattern0.t -> rhs: (Ppxlib_ast__.Import.Parsetree.expression, 'c, 'd) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.case, 'a, 'd) Ppxlib__.Ast_pattern0.t
val pcl_loc : (Warnings.loc, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.class_expr, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.class_expr, 'a, 'c) Ppxlib__.Ast_pattern0.t
val pcl_attributes : (Ppxlib_ast__.Import.Parsetree.attribute list, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.class_expr, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.class_expr, 'a, 'c) Ppxlib__.Ast_pattern0.t
val pcl_constr : (Ppxlib_ast__.Import.Longident.t, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.core_type list, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.class_expr, 'a, 'c) Ppxlib__.Ast_pattern0.t
val pcl_structure : (Ppxlib_ast__.Import.Parsetree.class_structure, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.class_expr, 'a, 'b) Ppxlib__.Ast_pattern0.t
val pcl_fun : (Ppxlib_ast__.Import.Asttypes.arg_label, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.expression option, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.pattern, 'c, 'd) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.class_expr, 'd, 'e) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.class_expr, 'a, 'e) Ppxlib__.Ast_pattern0.t
val pcl_apply : (Ppxlib_ast__.Import.Parsetree.class_expr, 'a, 'b) Ppxlib__.Ast_pattern0.t -> ((Ppxlib_ast__.Import.Asttypes.arg_label * Ppxlib_ast__.Import.Parsetree.expression) list, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.class_expr, 'a, 'c) Ppxlib__.Ast_pattern0.t
val pcl_let : (Ppxlib_ast__.Import.Asttypes.rec_flag, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.value_binding list, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.class_expr, 'c, 'd) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.class_expr, 'a, 'd) Ppxlib__.Ast_pattern0.t
val pcl_constraint : (Ppxlib_ast__.Import.Parsetree.class_expr, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.class_type, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.class_expr, 'a, 'c) Ppxlib__.Ast_pattern0.t
val pcl_extension : (string Location.loc * Ppxlib_ast__.Import.Parsetree.payload, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.class_expr, 'a, 'b) Ppxlib__.Ast_pattern0.t
val pcl_open : (Ppxlib_ast__.Import.Longident.t Location.loc Ppxlib_ast__.Import.Parsetree.open_infos, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.class_expr, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.class_expr, 'a, 'c) Ppxlib__.Ast_pattern0.t
val pcf_loc : (Warnings.loc, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.class_field, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.class_field, 'a, 'c) Ppxlib__.Ast_pattern0.t
val pcf_attributes : (Ppxlib_ast__.Import.Parsetree.attribute list, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.class_field, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.class_field, 'a, 'c) Ppxlib__.Ast_pattern0.t
val pcf_inherit : (Ppxlib_ast__.Import.Asttypes.override_flag, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.class_expr, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (string Location.loc option, 'c, 'd) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.class_field, 'a, 'd) Ppxlib__.Ast_pattern0.t
val pcf_val : (string Location.loc * Ppxlib_ast__.Import.Asttypes.mutable_flag * Ppxlib_ast__.Import.Parsetree.class_field_kind, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.class_field, 'a, 'b) Ppxlib__.Ast_pattern0.t
val pcf_method : (string Location.loc * Ppxlib_ast__.Import.Asttypes.private_flag * Ppxlib_ast__.Import.Parsetree.class_field_kind, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.class_field, 'a, 'b) Ppxlib__.Ast_pattern0.t
val pcf_constraint : (Ppxlib_ast__.Import.Parsetree.core_type * Ppxlib_ast__.Import.Parsetree.core_type, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.class_field, 'a, 'b) Ppxlib__.Ast_pattern0.t
val pcf_initializer : (Ppxlib_ast__.Import.Parsetree.expression, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.class_field, 'a, 'b) Ppxlib__.Ast_pattern0.t
val pcf_attribute : (Ppxlib_ast__.Import.Parsetree.attribute, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.class_field, 'a, 'b) Ppxlib__.Ast_pattern0.t
val pcf_extension : (string Location.loc * Ppxlib_ast__.Import.Parsetree.payload, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.class_field, 'a, 'b) Ppxlib__.Ast_pattern0.t
val cfk_virtual : (Ppxlib_ast__.Import.Parsetree.core_type, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.class_field_kind, 'a, 'b) Ppxlib__.Ast_pattern0.t
val cfk_concrete : (Ppxlib_ast__.Import.Asttypes.override_flag, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.expression, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.class_field_kind, 'a, 'c) Ppxlib__.Ast_pattern0.t
val class_infos_attributes : (Ppxlib_ast__.Import.Parsetree.attribute list, 'a, 'b) Ppxlib__.Ast_pattern0.t -> ('c Ppxlib_ast__.Import.Parsetree.class_infos, 'b, 'd) Ppxlib__.Ast_pattern0.t -> ('c Ppxlib_ast__.Import.Parsetree.class_infos, 'a, 'd) Ppxlib__.Ast_pattern0.t
val class_infos : virt: (Ppxlib_ast__.Import.Asttypes.virtual_flag, 'a, 'b) Ppxlib__.Ast_pattern0.t -> params: ((Ppxlib_ast__.Import.Parsetree.core_type * Ppxlib_ast__.Import.Asttypes.variance) list, 'b, 'c) Ppxlib__.Ast_pattern0.t -> name:(string, 'c, 'd) Ppxlib__.Ast_pattern0.t -> expr:('e, 'd, 'f) Ppxlib__.Ast_pattern0.t -> ('e Ppxlib_ast__.Import.Parsetree.class_infos, 'a, 'f) Ppxlib__.Ast_pattern0.t
val class_signature : self: (Ppxlib_ast__.Import.Parsetree.core_type, 'a, 'b) Ppxlib__.Ast_pattern0.t -> fields: (Ppxlib_ast__.Import.Parsetree.class_type_field list, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.class_signature, 'a, 'c) Ppxlib__.Ast_pattern0.t
val class_structure : self:(Ppxlib_ast__.Import.Parsetree.pattern, 'a, 'b) Ppxlib__.Ast_pattern0.t -> fields: (Ppxlib_ast__.Import.Parsetree.class_field list, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.class_structure, 'a, 'c) Ppxlib__.Ast_pattern0.t
val pcty_loc : (Warnings.loc, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.class_type, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.class_type, 'a, 'c) Ppxlib__.Ast_pattern0.t
val pcty_attributes : (Ppxlib_ast__.Import.Parsetree.attribute list, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.class_type, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.class_type, 'a, 'c) Ppxlib__.Ast_pattern0.t
val pcty_constr : (Ppxlib_ast__.Import.Longident.t, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.core_type list, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.class_type, 'a, 'c) Ppxlib__.Ast_pattern0.t
val pcty_signature : (Ppxlib_ast__.Import.Parsetree.class_signature, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.class_type, 'a, 'b) Ppxlib__.Ast_pattern0.t
val pcty_arrow : (Ppxlib_ast__.Import.Asttypes.arg_label, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.core_type, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.class_type, 'c, 'd) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.class_type, 'a, 'd) Ppxlib__.Ast_pattern0.t
val pcty_extension : (string Location.loc * Ppxlib_ast__.Import.Parsetree.payload, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.class_type, 'a, 'b) Ppxlib__.Ast_pattern0.t
val pcty_open : (Ppxlib_ast__.Import.Longident.t Location.loc Ppxlib_ast__.Import.Parsetree.open_infos, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.class_type, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.class_type, 'a, 'c) Ppxlib__.Ast_pattern0.t
val pctf_loc : (Warnings.loc, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.class_type_field, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.class_type_field, 'a, 'c) Ppxlib__.Ast_pattern0.t
val pctf_attributes : (Ppxlib_ast__.Import.Parsetree.attribute list, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.class_type_field, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.class_type_field, 'a, 'c) Ppxlib__.Ast_pattern0.t
val pctf_inherit : (Ppxlib_ast__.Import.Parsetree.class_type, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.class_type_field, 'a, 'b) Ppxlib__.Ast_pattern0.t
val pctf_val : (string Location.loc * Ppxlib_ast__.Import.Asttypes.mutable_flag * Ppxlib_ast__.Import.Asttypes.virtual_flag * Ppxlib_ast__.Import.Parsetree.core_type, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.class_type_field, 'a, 'b) Ppxlib__.Ast_pattern0.t
val pctf_method : (string Location.loc * Ppxlib_ast__.Import.Asttypes.private_flag * Ppxlib_ast__.Import.Asttypes.virtual_flag * Ppxlib_ast__.Import.Parsetree.core_type, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.class_type_field, 'a, 'b) Ppxlib__.Ast_pattern0.t
val pctf_constraint : (Ppxlib_ast__.Import.Parsetree.core_type * Ppxlib_ast__.Import.Parsetree.core_type, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.class_type_field, 'a, 'b) Ppxlib__.Ast_pattern0.t
val pctf_attribute : (Ppxlib_ast__.Import.Parsetree.attribute, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.class_type_field, 'a, 'b) Ppxlib__.Ast_pattern0.t
val pctf_extension : (string Location.loc * Ppxlib_ast__.Import.Parsetree.payload, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.class_type_field, 'a, 'b) Ppxlib__.Ast_pattern0.t
val closed : (Ppxlib_ast__.Import.Asttypes.closed_flag, 'a, 'a) Ppxlib__.Ast_pattern0.t
val open_ : (Ppxlib_ast__.Import.Asttypes.closed_flag, 'a, 'a) Ppxlib__.Ast_pattern0.t
val pconst_integer : (string, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (char option, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.constant, 'a, 'c) Ppxlib__.Ast_pattern0.t
val pconst_char : (char, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.constant, 'a, 'b) Ppxlib__.Ast_pattern0.t
val pconst_string : (string, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (string option, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.constant, 'a, 'c) Ppxlib__.Ast_pattern0.t
val pconst_float : (string, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (char option, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.constant, 'a, 'c) Ppxlib__.Ast_pattern0.t
val pcstr_tuple : (Ppxlib_ast__.Import.Parsetree.core_type list, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.constructor_arguments, 'a, 'b) Ppxlib__.Ast_pattern0.t
val pcstr_record : (Ppxlib_ast__.Import.Parsetree.label_declaration list, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.constructor_arguments, 'a, 'b) Ppxlib__.Ast_pattern0.t
val constructor_declaration_attributes : (Ppxlib_ast__.Import.Parsetree.attribute list, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.constructor_declaration, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.constructor_declaration, 'a, 'c) Ppxlib__.Ast_pattern0.t
val constructor_declaration : name:(string, 'a, 'b) Ppxlib__.Ast_pattern0.t -> args: (Ppxlib_ast__.Import.Parsetree.constructor_arguments, 'b, 'c) Ppxlib__.Ast_pattern0.t -> res: (Ppxlib_ast__.Import.Parsetree.core_type option, 'c, 'd) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.constructor_declaration, 'a, 'd) Ppxlib__.Ast_pattern0.t
val ptyp_loc : (Warnings.loc, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.core_type, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.core_type, 'a, 'c) Ppxlib__.Ast_pattern0.t
val ptyp_attributes : (Ppxlib_ast__.Import.Parsetree.attribute list, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.core_type, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.core_type, 'a, 'c) Ppxlib__.Ast_pattern0.t
val ptyp_any : (Ppxlib_ast__.Import.Parsetree.core_type, 'a, 'a) Ppxlib__.Ast_pattern0.t
val ptyp_var : (string, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.core_type, 'a, 'b) Ppxlib__.Ast_pattern0.t
val ptyp_arrow : (Ppxlib_ast__.Import.Asttypes.arg_label, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.core_type, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.core_type, 'c, 'd) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.core_type, 'a, 'd) Ppxlib__.Ast_pattern0.t
val ptyp_tuple : (Ppxlib_ast__.Import.Parsetree.core_type list, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.core_type, 'a, 'b) Ppxlib__.Ast_pattern0.t
val ptyp_constr : (Ppxlib_ast__.Import.Longident.t, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.core_type list, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.core_type, 'a, 'c) Ppxlib__.Ast_pattern0.t
val ptyp_object : (Ppxlib_ast__.Import.Parsetree.object_field list, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Asttypes.closed_flag, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.core_type, 'a, 'c) Ppxlib__.Ast_pattern0.t
val ptyp_class : (Ppxlib_ast__.Import.Longident.t, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.core_type list, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.core_type, 'a, 'c) Ppxlib__.Ast_pattern0.t
val ptyp_alias : (Ppxlib_ast__.Import.Parsetree.core_type, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (string, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.core_type, 'a, 'c) Ppxlib__.Ast_pattern0.t
val ptyp_variant : (Ppxlib_ast__.Import.Parsetree.row_field list, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Asttypes.closed_flag, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (string list option, 'c, 'd) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.core_type, 'a, 'd) Ppxlib__.Ast_pattern0.t
val ptyp_poly : (string Location.loc list, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.core_type, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.core_type, 'a, 'c) Ppxlib__.Ast_pattern0.t
val ptyp_package : (Ppxlib_ast__.Import.Longident.t Location.loc * (Ppxlib_ast__.Import.Longident.t Location.loc * Ppxlib_ast__.Import.Parsetree.core_type) list, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.core_type, 'a, 'b) Ppxlib__.Ast_pattern0.t
val ptyp_extension : (string Location.loc * Ppxlib_ast__.Import.Parsetree.payload, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.core_type, 'a, 'b) Ppxlib__.Ast_pattern0.t
val upto : (Ppxlib_ast__.Import.Asttypes.direction_flag, 'a, 'a) Ppxlib__.Ast_pattern0.t
val downto_ : (Ppxlib_ast__.Import.Asttypes.direction_flag, 'a, 'a) Ppxlib__.Ast_pattern0.t
val pdira_loc : (Warnings.loc, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.directive_argument, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.directive_argument, 'a, 'c) Ppxlib__.Ast_pattern0.t
val pdir_string : (string, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.directive_argument, 'a, 'b) Ppxlib__.Ast_pattern0.t
val pdir_int : (string, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (char option, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.directive_argument, 'a, 'c) Ppxlib__.Ast_pattern0.t
val pdir_ident : (Ppxlib_ast__.Import.Longident.t, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.directive_argument, 'a, 'b) Ppxlib__.Ast_pattern0.t
val pdir_bool : (bool, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.directive_argument, 'a, 'b) Ppxlib__.Ast_pattern0.t
val pexp_loc : (Warnings.loc, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.expression, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.expression, 'a, 'c) Ppxlib__.Ast_pattern0.t
val pexp_attributes : (Ppxlib_ast__.Import.Parsetree.attribute list, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.expression, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.expression, 'a, 'c) Ppxlib__.Ast_pattern0.t
val pexp_ident : (Ppxlib_ast__.Import.Longident.t, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.expression, 'a, 'b) Ppxlib__.Ast_pattern0.t
val pexp_constant : (Ppxlib_ast__.Import.Parsetree.constant, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.expression, 'a, 'b) Ppxlib__.Ast_pattern0.t
val pexp_let : (Ppxlib_ast__.Import.Asttypes.rec_flag, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.value_binding list, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.expression, 'c, 'd) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.expression, 'a, 'd) Ppxlib__.Ast_pattern0.t
val pexp_function : (Ppxlib_ast__.Import.Parsetree.case list, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.expression, 'a, 'b) Ppxlib__.Ast_pattern0.t
val pexp_fun : (Ppxlib_ast__.Import.Asttypes.arg_label, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.expression option, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.pattern, 'c, 'd) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.expression, 'd, 'e) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.expression, 'a, 'e) Ppxlib__.Ast_pattern0.t
val pexp_apply : (Ppxlib_ast__.Import.Parsetree.expression, 'a, 'b) Ppxlib__.Ast_pattern0.t -> ((Ppxlib_ast__.Import.Asttypes.arg_label * Ppxlib_ast__.Import.Parsetree.expression) list, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.expression, 'a, 'c) Ppxlib__.Ast_pattern0.t
val pexp_match : (Ppxlib_ast__.Import.Parsetree.expression, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.case list, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.expression, 'a, 'c) Ppxlib__.Ast_pattern0.t
val pexp_try : (Ppxlib_ast__.Import.Parsetree.expression, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.case list, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.expression, 'a, 'c) Ppxlib__.Ast_pattern0.t
val pexp_tuple : (Ppxlib_ast__.Import.Parsetree.expression list, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.expression, 'a, 'b) Ppxlib__.Ast_pattern0.t
val pexp_construct : (Ppxlib_ast__.Import.Longident.t, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.expression option, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.expression, 'a, 'c) Ppxlib__.Ast_pattern0.t
val pexp_variant : (string, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.expression option, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.expression, 'a, 'c) Ppxlib__.Ast_pattern0.t
val pexp_record : ((Ppxlib_ast__.Import.Longident.t Location.loc * Ppxlib_ast__.Import.Parsetree.expression) list, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.expression option, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.expression, 'a, 'c) Ppxlib__.Ast_pattern0.t
val pexp_field : (Ppxlib_ast__.Import.Parsetree.expression, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Longident.t, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.expression, 'a, 'c) Ppxlib__.Ast_pattern0.t
val pexp_setfield : (Ppxlib_ast__.Import.Parsetree.expression, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Longident.t, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.expression, 'c, 'd) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.expression, 'a, 'd) Ppxlib__.Ast_pattern0.t
val pexp_array : (Ppxlib_ast__.Import.Parsetree.expression list, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.expression, 'a, 'b) Ppxlib__.Ast_pattern0.t
val pexp_ifthenelse : (Ppxlib_ast__.Import.Parsetree.expression, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.expression, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.expression option, 'c, 'd) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.expression, 'a, 'd) Ppxlib__.Ast_pattern0.t
val pexp_sequence : (Ppxlib_ast__.Import.Parsetree.expression, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.expression, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.expression, 'a, 'c) Ppxlib__.Ast_pattern0.t
val pexp_while : (Ppxlib_ast__.Import.Parsetree.expression, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.expression, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.expression, 'a, 'c) Ppxlib__.Ast_pattern0.t
val pexp_for : (Ppxlib_ast__.Import.Parsetree.pattern, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.expression, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.expression, 'c, 'd) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Asttypes.direction_flag, 'd, 'e) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.expression, 'e, 'f) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.expression, 'a, 'f) Ppxlib__.Ast_pattern0.t
val pexp_constraint : (Ppxlib_ast__.Import.Parsetree.expression, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.core_type, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.expression, 'a, 'c) Ppxlib__.Ast_pattern0.t
val pexp_coerce : (Ppxlib_ast__.Import.Parsetree.expression, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.core_type option, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.core_type, 'c, 'd) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.expression, 'a, 'd) Ppxlib__.Ast_pattern0.t
val pexp_send : (Ppxlib_ast__.Import.Parsetree.expression, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (string, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.expression, 'a, 'c) Ppxlib__.Ast_pattern0.t
val pexp_new : (Ppxlib_ast__.Import.Longident.t, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.expression, 'a, 'b) Ppxlib__.Ast_pattern0.t
val pexp_setinstvar : (string, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.expression, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.expression, 'a, 'c) Ppxlib__.Ast_pattern0.t
val pexp_override : ((string Location.loc * Ppxlib_ast__.Import.Parsetree.expression) list, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.expression, 'a, 'b) Ppxlib__.Ast_pattern0.t
val pexp_letmodule : (string, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.module_expr, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.expression, 'c, 'd) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.expression, 'a, 'd) Ppxlib__.Ast_pattern0.t
val pexp_letexception : (Ppxlib_ast__.Import.Parsetree.extension_constructor, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.expression, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.expression, 'a, 'c) Ppxlib__.Ast_pattern0.t
val pexp_assert : (Ppxlib_ast__.Import.Parsetree.expression, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.expression, 'a, 'b) Ppxlib__.Ast_pattern0.t
val pexp_lazy : (Ppxlib_ast__.Import.Parsetree.expression, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.expression, 'a, 'b) Ppxlib__.Ast_pattern0.t
val pexp_poly : (Ppxlib_ast__.Import.Parsetree.expression, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.core_type option, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.expression, 'a, 'c) Ppxlib__.Ast_pattern0.t
val pexp_object : (Ppxlib_ast__.Import.Parsetree.class_structure, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.expression, 'a, 'b) Ppxlib__.Ast_pattern0.t
val pexp_newtype : (string, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.expression, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.expression, 'a, 'c) Ppxlib__.Ast_pattern0.t
val pexp_pack : (Ppxlib_ast__.Import.Parsetree.module_expr, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.expression, 'a, 'b) Ppxlib__.Ast_pattern0.t
val pexp_open : (Ppxlib_ast__.Import.Parsetree.module_expr Ppxlib_ast__.Import.Parsetree.open_infos, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.expression, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.expression, 'a, 'c) Ppxlib__.Ast_pattern0.t
val pexp_letop : (Ppxlib_ast__.Import.Parsetree.letop, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.expression, 'a, 'b) Ppxlib__.Ast_pattern0.t
val pexp_extension : (string Location.loc * Ppxlib_ast__.Import.Parsetree.payload, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.expression, 'a, 'b) Ppxlib__.Ast_pattern0.t
val pexp_unreachable : (Ppxlib_ast__.Import.Parsetree.expression, 'a, 'a) Ppxlib__.Ast_pattern0.t
val extension_constructor_attributes : (Ppxlib_ast__.Import.Parsetree.attribute list, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.extension_constructor, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.extension_constructor, 'a, 'c) Ppxlib__.Ast_pattern0.t
val extension_constructor : name:(string, 'a, 'b) Ppxlib__.Ast_pattern0.t -> kind: (Ppxlib_ast__.Import.Parsetree.extension_constructor_kind, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.extension_constructor, 'a, 'c) Ppxlib__.Ast_pattern0.t
val pext_decl : (Ppxlib_ast__.Import.Parsetree.constructor_arguments, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.core_type option, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.extension_constructor_kind, 'a, 'c) Ppxlib__.Ast_pattern0.t
val pext_rebind : (Ppxlib_ast__.Import.Longident.t, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.extension_constructor_kind, 'a, 'b) Ppxlib__.Ast_pattern0.t
val include_infos_attributes : (Ppxlib_ast__.Import.Parsetree.attribute list, 'a, 'b) Ppxlib__.Ast_pattern0.t -> ('c Ppxlib_ast__.Import.Parsetree.include_infos, 'b, 'd) Ppxlib__.Ast_pattern0.t -> ('c Ppxlib_ast__.Import.Parsetree.include_infos, 'a, 'd) Ppxlib__.Ast_pattern0.t
val include_infos : mod_:('a, 'b, 'c) Ppxlib__.Ast_pattern0.t -> ('a Ppxlib_ast__.Import.Parsetree.include_infos, 'b, 'c) Ppxlib__.Ast_pattern0.t
val label_declaration_attributes : (Ppxlib_ast__.Import.Parsetree.attribute list, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.label_declaration, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.label_declaration, 'a, 'c) Ppxlib__.Ast_pattern0.t
val label_declaration : name:(string, 'a, 'b) Ppxlib__.Ast_pattern0.t -> mutable_: (Ppxlib_ast__.Import.Asttypes.mutable_flag, 'b, 'c) Ppxlib__.Ast_pattern0.t -> type_: (Ppxlib_ast__.Import.Parsetree.core_type, 'c, 'd) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.label_declaration, 'a, 'd) Ppxlib__.Ast_pattern0.t
val letop : let_: (Ppxlib_ast__.Import.Parsetree.binding_op, 'a, 'b) Ppxlib__.Ast_pattern0.t -> ands: (Ppxlib_ast__.Import.Parsetree.binding_op list, 'b, 'c) Ppxlib__.Ast_pattern0.t -> body: (Ppxlib_ast__.Import.Parsetree.expression, 'c, 'd) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.letop, 'a, 'd) Ppxlib__.Ast_pattern0.t
val location : start:(Stdlib.Lexing.position, 'a, 'b) Ppxlib__.Ast_pattern0.t -> end_:(Stdlib.Lexing.position, 'b, 'c) Ppxlib__.Ast_pattern0.t -> ghost:(bool, 'c, 'd) Ppxlib__.Ast_pattern0.t -> (Warnings.loc, 'a, 'd) Ppxlib__.Ast_pattern0.t
val lident : (string, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Longident.t, 'a, 'b) Ppxlib__.Ast_pattern0.t
val ldot : (Ppxlib_ast__.Import.Longident.t, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (string, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Longident.t, 'a, 'c) Ppxlib__.Ast_pattern0.t
val lapply : (Ppxlib_ast__.Import.Longident.t, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Longident.t, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Longident.t, 'a, 'c) Ppxlib__.Ast_pattern0.t
val module_binding_attributes : (Ppxlib_ast__.Import.Parsetree.attribute list, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.module_binding, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.module_binding, 'a, 'c) Ppxlib__.Ast_pattern0.t
val module_binding : name:(string, 'a, 'b) Ppxlib__.Ast_pattern0.t -> expr: (Ppxlib_ast__.Import.Parsetree.module_expr, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.module_binding, 'a, 'c) Ppxlib__.Ast_pattern0.t
val module_declaration_attributes : (Ppxlib_ast__.Import.Parsetree.attribute list, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.module_declaration, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.module_declaration, 'a, 'c) Ppxlib__.Ast_pattern0.t
val module_declaration : name:(string, 'a, 'b) Ppxlib__.Ast_pattern0.t -> type_: (Ppxlib_ast__.Import.Parsetree.module_type, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.module_declaration, 'a, 'c) Ppxlib__.Ast_pattern0.t
val pmod_loc : (Warnings.loc, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.module_expr, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.module_expr, 'a, 'c) Ppxlib__.Ast_pattern0.t
val pmod_attributes : (Ppxlib_ast__.Import.Parsetree.attribute list, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.module_expr, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.module_expr, 'a, 'c) Ppxlib__.Ast_pattern0.t
val pmod_ident : (Ppxlib_ast__.Import.Longident.t, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.module_expr, 'a, 'b) Ppxlib__.Ast_pattern0.t
val pmod_structure : (Ppxlib_ast__.Import.Parsetree.structure_item list, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.module_expr, 'a, 'b) Ppxlib__.Ast_pattern0.t
val pmod_functor : (string, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.module_type option, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.module_expr, 'c, 'd) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.module_expr, 'a, 'd) Ppxlib__.Ast_pattern0.t
val pmod_apply : (Ppxlib_ast__.Import.Parsetree.module_expr, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.module_expr, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.module_expr, 'a, 'c) Ppxlib__.Ast_pattern0.t
val pmod_constraint : (Ppxlib_ast__.Import.Parsetree.module_expr, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.module_type, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.module_expr, 'a, 'c) Ppxlib__.Ast_pattern0.t
val pmod_unpack : (Ppxlib_ast__.Import.Parsetree.expression, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.module_expr, 'a, 'b) Ppxlib__.Ast_pattern0.t
val pmod_extension : (string Location.loc * Ppxlib_ast__.Import.Parsetree.payload, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.module_expr, 'a, 'b) Ppxlib__.Ast_pattern0.t
val module_substitution_attributes : (Ppxlib_ast__.Import.Parsetree.attribute list, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.module_substitution, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.module_substitution, 'a, 'c) Ppxlib__.Ast_pattern0.t
val module_substitution : name:(string, 'a, 'b) Ppxlib__.Ast_pattern0.t -> manifest:(Ppxlib_ast__.Import.Longident.t, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.module_substitution, 'a, 'c) Ppxlib__.Ast_pattern0.t
val pmty_loc : (Warnings.loc, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.module_type, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.module_type, 'a, 'c) Ppxlib__.Ast_pattern0.t
val pmty_attributes : (Ppxlib_ast__.Import.Parsetree.attribute list, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.module_type, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.module_type, 'a, 'c) Ppxlib__.Ast_pattern0.t
val pmty_ident : (Ppxlib_ast__.Import.Longident.t, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.module_type, 'a, 'b) Ppxlib__.Ast_pattern0.t
val pmty_signature : (Ppxlib_ast__.Import.Parsetree.signature_item list, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.module_type, 'a, 'b) Ppxlib__.Ast_pattern0.t
val pmty_functor : (string, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.module_type option, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.module_type, 'c, 'd) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.module_type, 'a, 'd) Ppxlib__.Ast_pattern0.t
val pmty_with : (Ppxlib_ast__.Import.Parsetree.module_type, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.with_constraint list, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.module_type, 'a, 'c) Ppxlib__.Ast_pattern0.t
val pmty_typeof : (Ppxlib_ast__.Import.Parsetree.module_expr, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.module_type, 'a, 'b) Ppxlib__.Ast_pattern0.t
val pmty_extension : (string Location.loc * Ppxlib_ast__.Import.Parsetree.payload, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.module_type, 'a, 'b) Ppxlib__.Ast_pattern0.t
val pmty_alias : (Ppxlib_ast__.Import.Longident.t, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.module_type, 'a, 'b) Ppxlib__.Ast_pattern0.t
val module_type_declaration_attributes : (Ppxlib_ast__.Import.Parsetree.attribute list, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.module_type_declaration, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.module_type_declaration, 'a, 'c) Ppxlib__.Ast_pattern0.t
val module_type_declaration : name:(string, 'a, 'b) Ppxlib__.Ast_pattern0.t -> type_: (Ppxlib_ast__.Import.Parsetree.module_type option, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.module_type_declaration, 'a, 'c) Ppxlib__.Ast_pattern0.t
val immutable : (Ppxlib_ast__.Import.Asttypes.mutable_flag, 'a, 'a) Ppxlib__.Ast_pattern0.t
val mutable_ : (Ppxlib_ast__.Import.Asttypes.mutable_flag, 'a, 'a) Ppxlib__.Ast_pattern0.t
val pof_loc : (Warnings.loc, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.object_field, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.object_field, 'a, 'c) Ppxlib__.Ast_pattern0.t
val pof_attributes : (Ppxlib_ast__.Import.Parsetree.attribute list, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.object_field, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.object_field, 'a, 'c) Ppxlib__.Ast_pattern0.t
val otag : (string, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.core_type, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.object_field, 'a, 'c) Ppxlib__.Ast_pattern0.t
val oinherit : (Ppxlib_ast__.Import.Parsetree.core_type, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.object_field, 'a, 'b) Ppxlib__.Ast_pattern0.t
val open_infos_attributes : (Ppxlib_ast__.Import.Parsetree.attribute list, 'a, 'b) Ppxlib__.Ast_pattern0.t -> ('c Ppxlib_ast__.Import.Parsetree.open_infos, 'b, 'd) Ppxlib__.Ast_pattern0.t -> ('c Ppxlib_ast__.Import.Parsetree.open_infos, 'a, 'd) Ppxlib__.Ast_pattern0.t
val open_infos : expr:('a, 'b, 'c) Ppxlib__.Ast_pattern0.t -> override: (Ppxlib_ast__.Import.Asttypes.override_flag, 'c, 'd) Ppxlib__.Ast_pattern0.t -> ('a Ppxlib_ast__.Import.Parsetree.open_infos, 'b, 'd) Ppxlib__.Ast_pattern0.t
val override : (Ppxlib_ast__.Import.Asttypes.override_flag, 'a, 'a) Ppxlib__.Ast_pattern0.t
val fresh : (Ppxlib_ast__.Import.Asttypes.override_flag, 'a, 'a) Ppxlib__.Ast_pattern0.t
val ppat_loc : (Warnings.loc, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.pattern, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.pattern, 'a, 'c) Ppxlib__.Ast_pattern0.t
val ppat_attributes : (Ppxlib_ast__.Import.Parsetree.attribute list, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.pattern, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.pattern, 'a, 'c) Ppxlib__.Ast_pattern0.t
val ppat_any : (Ppxlib_ast__.Import.Parsetree.pattern, 'a, 'a) Ppxlib__.Ast_pattern0.t
val ppat_var : (string, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.pattern, 'a, 'b) Ppxlib__.Ast_pattern0.t
val ppat_alias : (Ppxlib_ast__.Import.Parsetree.pattern, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (string, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.pattern, 'a, 'c) Ppxlib__.Ast_pattern0.t
val ppat_constant : (Ppxlib_ast__.Import.Parsetree.constant, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.pattern, 'a, 'b) Ppxlib__.Ast_pattern0.t
val ppat_interval : (Ppxlib_ast__.Import.Parsetree.constant, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.constant, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.pattern, 'a, 'c) Ppxlib__.Ast_pattern0.t
val ppat_tuple : (Ppxlib_ast__.Import.Parsetree.pattern list, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.pattern, 'a, 'b) Ppxlib__.Ast_pattern0.t
val ppat_construct : (Ppxlib_ast__.Import.Longident.t, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.pattern option, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.pattern, 'a, 'c) Ppxlib__.Ast_pattern0.t
val ppat_variant : (string, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.pattern option, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.pattern, 'a, 'c) Ppxlib__.Ast_pattern0.t
val ppat_record : ((Ppxlib_ast__.Import.Longident.t Location.loc * Ppxlib_ast__.Import.Parsetree.pattern) list, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Asttypes.closed_flag, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.pattern, 'a, 'c) Ppxlib__.Ast_pattern0.t
val ppat_array : (Ppxlib_ast__.Import.Parsetree.pattern list, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.pattern, 'a, 'b) Ppxlib__.Ast_pattern0.t
val ppat_or : (Ppxlib_ast__.Import.Parsetree.pattern, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.pattern, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.pattern, 'a, 'c) Ppxlib__.Ast_pattern0.t
val ppat_constraint : (Ppxlib_ast__.Import.Parsetree.pattern, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.core_type, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.pattern, 'a, 'c) Ppxlib__.Ast_pattern0.t
val ppat_type : (Ppxlib_ast__.Import.Longident.t, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.pattern, 'a, 'b) Ppxlib__.Ast_pattern0.t
val ppat_lazy : (Ppxlib_ast__.Import.Parsetree.pattern, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.pattern, 'a, 'b) Ppxlib__.Ast_pattern0.t
val ppat_unpack : (string, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.pattern, 'a, 'b) Ppxlib__.Ast_pattern0.t
val ppat_exception : (Ppxlib_ast__.Import.Parsetree.pattern, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.pattern, 'a, 'b) Ppxlib__.Ast_pattern0.t
val ppat_extension : (string Location.loc * Ppxlib_ast__.Import.Parsetree.payload, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.pattern, 'a, 'b) Ppxlib__.Ast_pattern0.t
val ppat_open : (Ppxlib_ast__.Import.Longident.t, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.pattern, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.pattern, 'a, 'c) Ppxlib__.Ast_pattern0.t
val pstr : (Ppxlib_ast__.Import.Parsetree.structure_item list, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.payload, 'a, 'b) Ppxlib__.Ast_pattern0.t
val psig : (Ppxlib_ast__.Import.Parsetree.signature_item list, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.payload, 'a, 'b) Ppxlib__.Ast_pattern0.t
val ptyp : (Ppxlib_ast__.Import.Parsetree.core_type, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.payload, 'a, 'b) Ppxlib__.Ast_pattern0.t
val ppat : (Ppxlib_ast__.Import.Parsetree.pattern, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.expression option, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.payload, 'a, 'c) Ppxlib__.Ast_pattern0.t
val position : fname:(string, 'a, 'b) Ppxlib__.Ast_pattern0.t -> lnum:(int, 'b, 'c) Ppxlib__.Ast_pattern0.t -> bol:(int, 'c, 'd) Ppxlib__.Ast_pattern0.t -> cnum:(int, 'd, 'e) Ppxlib__.Ast_pattern0.t -> (Stdlib.Lexing.position, 'a, 'e) Ppxlib__.Ast_pattern0.t
val private_ : (Ppxlib_ast__.Import.Asttypes.private_flag, 'a, 'a) Ppxlib__.Ast_pattern0.t
val public : (Ppxlib_ast__.Import.Asttypes.private_flag, 'a, 'a) Ppxlib__.Ast_pattern0.t
val nonrecursive : (Ppxlib_ast__.Import.Asttypes.rec_flag, 'a, 'a) Ppxlib__.Ast_pattern0.t
val recursive : (Ppxlib_ast__.Import.Asttypes.rec_flag, 'a, 'a) Ppxlib__.Ast_pattern0.t
val prf_loc : (Warnings.loc, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.row_field, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.row_field, 'a, 'c) Ppxlib__.Ast_pattern0.t
val prf_attributes : (Ppxlib_ast__.Import.Parsetree.attribute list, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.row_field, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.row_field, 'a, 'c) Ppxlib__.Ast_pattern0.t
val rtag : (string, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (bool, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.core_type list, 'c, 'd) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.row_field, 'a, 'd) Ppxlib__.Ast_pattern0.t
val rinherit : (Ppxlib_ast__.Import.Parsetree.core_type, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.row_field, 'a, 'b) Ppxlib__.Ast_pattern0.t
val psig_loc : (Warnings.loc, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.signature_item, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.signature_item, 'a, 'c) Ppxlib__.Ast_pattern0.t
val psig_value : (Ppxlib_ast__.Import.Parsetree.value_description, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.signature_item, 'a, 'b) Ppxlib__.Ast_pattern0.t
val psig_type : (Ppxlib_ast__.Import.Asttypes.rec_flag, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.type_declaration list, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.signature_item, 'a, 'c) Ppxlib__.Ast_pattern0.t
val psig_typesubst : (Ppxlib_ast__.Import.Parsetree.type_declaration list, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.signature_item, 'a, 'b) Ppxlib__.Ast_pattern0.t
val psig_typext : (Ppxlib_ast__.Import.Parsetree.type_extension, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.signature_item, 'a, 'b) Ppxlib__.Ast_pattern0.t
val psig_exception : (Ppxlib_ast__.Import.Parsetree.type_exception, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.signature_item, 'a, 'b) Ppxlib__.Ast_pattern0.t
val psig_module : (Ppxlib_ast__.Import.Parsetree.module_declaration, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.signature_item, 'a, 'b) Ppxlib__.Ast_pattern0.t
val psig_modsubst : (Ppxlib_ast__.Import.Parsetree.module_substitution, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.signature_item, 'a, 'b) Ppxlib__.Ast_pattern0.t
val psig_recmodule : (Ppxlib_ast__.Import.Parsetree.module_declaration list, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.signature_item, 'a, 'b) Ppxlib__.Ast_pattern0.t
val psig_modtype : (Ppxlib_ast__.Import.Parsetree.module_type_declaration, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.signature_item, 'a, 'b) Ppxlib__.Ast_pattern0.t
val psig_open : (Ppxlib_ast__.Import.Longident.t Location.loc Ppxlib_ast__.Import.Parsetree.open_infos, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.signature_item, 'a, 'b) Ppxlib__.Ast_pattern0.t
val psig_include : (Ppxlib_ast__.Import.Parsetree.module_type Ppxlib_ast__.Import.Parsetree.include_infos, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.signature_item, 'a, 'b) Ppxlib__.Ast_pattern0.t
val psig_class : (Ppxlib_ast__.Import.Parsetree.class_type Ppxlib_ast__.Import.Parsetree.class_infos list, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.signature_item, 'a, 'b) Ppxlib__.Ast_pattern0.t
val psig_class_type : (Ppxlib_ast__.Import.Parsetree.class_type Ppxlib_ast__.Import.Parsetree.class_infos list, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.signature_item, 'a, 'b) Ppxlib__.Ast_pattern0.t
val psig_attribute : (Ppxlib_ast__.Import.Parsetree.attribute, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.signature_item, 'a, 'b) Ppxlib__.Ast_pattern0.t
val psig_extension : (string Location.loc * Ppxlib_ast__.Import.Parsetree.payload, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.attribute list, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.signature_item, 'a, 'c) Ppxlib__.Ast_pattern0.t
val pstr_loc : (Warnings.loc, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.structure_item, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.structure_item, 'a, 'c) Ppxlib__.Ast_pattern0.t
val pstr_eval : (Ppxlib_ast__.Import.Parsetree.expression, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.attribute list, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.structure_item, 'a, 'c) Ppxlib__.Ast_pattern0.t
val pstr_value : (Ppxlib_ast__.Import.Asttypes.rec_flag, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.value_binding list, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.structure_item, 'a, 'c) Ppxlib__.Ast_pattern0.t
val pstr_primitive : (Ppxlib_ast__.Import.Parsetree.value_description, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.structure_item, 'a, 'b) Ppxlib__.Ast_pattern0.t
val pstr_type : (Ppxlib_ast__.Import.Asttypes.rec_flag, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.type_declaration list, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.structure_item, 'a, 'c) Ppxlib__.Ast_pattern0.t
val pstr_typext : (Ppxlib_ast__.Import.Parsetree.type_extension, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.structure_item, 'a, 'b) Ppxlib__.Ast_pattern0.t
val pstr_exception : (Ppxlib_ast__.Import.Parsetree.type_exception, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.structure_item, 'a, 'b) Ppxlib__.Ast_pattern0.t
val pstr_module : (Ppxlib_ast__.Import.Parsetree.module_binding, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.structure_item, 'a, 'b) Ppxlib__.Ast_pattern0.t
val pstr_recmodule : (Ppxlib_ast__.Import.Parsetree.module_binding list, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.structure_item, 'a, 'b) Ppxlib__.Ast_pattern0.t
val pstr_modtype : (Ppxlib_ast__.Import.Parsetree.module_type_declaration, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.structure_item, 'a, 'b) Ppxlib__.Ast_pattern0.t
val pstr_open : (Ppxlib_ast__.Import.Parsetree.module_expr Ppxlib_ast__.Import.Parsetree.open_infos, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.structure_item, 'a, 'b) Ppxlib__.Ast_pattern0.t
val pstr_class : (Ppxlib_ast__.Import.Parsetree.class_expr Ppxlib_ast__.Import.Parsetree.class_infos list, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.structure_item, 'a, 'b) Ppxlib__.Ast_pattern0.t
val pstr_class_type : (Ppxlib_ast__.Import.Parsetree.class_type Ppxlib_ast__.Import.Parsetree.class_infos list, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.structure_item, 'a, 'b) Ppxlib__.Ast_pattern0.t
val pstr_include : (Ppxlib_ast__.Import.Parsetree.module_expr Ppxlib_ast__.Import.Parsetree.include_infos, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.structure_item, 'a, 'b) Ppxlib__.Ast_pattern0.t
val pstr_attribute : (Ppxlib_ast__.Import.Parsetree.attribute, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.structure_item, 'a, 'b) Ppxlib__.Ast_pattern0.t
val pstr_extension : (string Location.loc * Ppxlib_ast__.Import.Parsetree.payload, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.attribute list, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.structure_item, 'a, 'c) Ppxlib__.Ast_pattern0.t
val toplevel_directive : name:(string, 'a, 'b) Ppxlib__.Ast_pattern0.t -> arg: (Ppxlib_ast__.Import.Parsetree.directive_argument option, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.toplevel_directive, 'a, 'c) Ppxlib__.Ast_pattern0.t
val ptop_def : (Ppxlib_ast__.Import.Parsetree.structure_item list, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.toplevel_phrase, 'a, 'b) Ppxlib__.Ast_pattern0.t
val ptop_dir : (Ppxlib_ast__.Import.Parsetree.toplevel_directive, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.toplevel_phrase, 'a, 'b) Ppxlib__.Ast_pattern0.t
val type_declaration_attributes : (Ppxlib_ast__.Import.Parsetree.attribute list, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.type_declaration, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.type_declaration, 'a, 'c) Ppxlib__.Ast_pattern0.t
val type_declaration : name:(string, 'a, 'b) Ppxlib__.Ast_pattern0.t -> params: ((Ppxlib_ast__.Import.Parsetree.core_type * Ppxlib_ast__.Import.Asttypes.variance) list, 'b, 'c) Ppxlib__.Ast_pattern0.t -> cstrs: ((Ppxlib_ast__.Import.Parsetree.core_type * Ppxlib_ast__.Import.Parsetree.core_type * Warnings.loc) list, 'c, 'd) Ppxlib__.Ast_pattern0.t -> kind: (Ppxlib_ast__.Import.Parsetree.type_kind, 'd, 'e) Ppxlib__.Ast_pattern0.t -> private_: (Ppxlib_ast__.Import.Asttypes.private_flag, 'e, 'f) Ppxlib__.Ast_pattern0.t -> manifest: (Ppxlib_ast__.Import.Parsetree.core_type option, 'f, 'g) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.type_declaration, 'a, 'g) Ppxlib__.Ast_pattern0.t
val type_exception_attributes : (Ppxlib_ast__.Import.Parsetree.attribute list, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.type_exception, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.type_exception, 'a, 'c) Ppxlib__.Ast_pattern0.t
val type_exception : constructor: (Ppxlib_ast__.Import.Parsetree.extension_constructor, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.type_exception, 'a, 'b) Ppxlib__.Ast_pattern0.t
val type_extension_attributes : (Ppxlib_ast__.Import.Parsetree.attribute list, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.type_extension, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.type_extension, 'a, 'c) Ppxlib__.Ast_pattern0.t
val type_extension : path:(Ppxlib_ast__.Import.Longident.t, 'a, 'b) Ppxlib__.Ast_pattern0.t -> params: ((Ppxlib_ast__.Import.Parsetree.core_type * Ppxlib_ast__.Import.Asttypes.variance) list, 'b, 'c) Ppxlib__.Ast_pattern0.t -> constructors: (Ppxlib_ast__.Import.Parsetree.extension_constructor list, 'c, 'd) Ppxlib__.Ast_pattern0.t -> private_: (Ppxlib_ast__.Import.Asttypes.private_flag, 'd, 'e) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.type_extension, 'a, 'e) Ppxlib__.Ast_pattern0.t
val ptype_abstract : (Ppxlib_ast__.Import.Parsetree.type_kind, 'a, 'a) Ppxlib__.Ast_pattern0.t
val ptype_variant : (Ppxlib_ast__.Import.Parsetree.constructor_declaration list, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.type_kind, 'a, 'b) Ppxlib__.Ast_pattern0.t
val ptype_record : (Ppxlib_ast__.Import.Parsetree.label_declaration list, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.type_kind, 'a, 'b) Ppxlib__.Ast_pattern0.t
val ptype_open : (Ppxlib_ast__.Import.Parsetree.type_kind, 'a, 'a) Ppxlib__.Ast_pattern0.t
val value_binding_attributes : (Ppxlib_ast__.Import.Parsetree.attribute list, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.value_binding, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.value_binding, 'a, 'c) Ppxlib__.Ast_pattern0.t
val value_binding : pat:(Ppxlib_ast__.Import.Parsetree.pattern, 'a, 'b) Ppxlib__.Ast_pattern0.t -> expr: (Ppxlib_ast__.Import.Parsetree.expression, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.value_binding, 'a, 'c) Ppxlib__.Ast_pattern0.t
val value_description_attributes : (Ppxlib_ast__.Import.Parsetree.attribute list, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.value_description, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.value_description, 'a, 'c) Ppxlib__.Ast_pattern0.t
val value_description : name:(string, 'a, 'b) Ppxlib__.Ast_pattern0.t -> type_: (Ppxlib_ast__.Import.Parsetree.core_type, 'b, 'c) Ppxlib__.Ast_pattern0.t -> prim:(string list, 'c, 'd) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.value_description, 'a, 'd) Ppxlib__.Ast_pattern0.t
val covariant : (Ppxlib_ast__.Import.Asttypes.variance, 'a, 'a) Ppxlib__.Ast_pattern0.t
val contravariant : (Ppxlib_ast__.Import.Asttypes.variance, 'a, 'a) Ppxlib__.Ast_pattern0.t
val invariant : (Ppxlib_ast__.Import.Asttypes.variance, 'a, 'a) Ppxlib__.Ast_pattern0.t
val virtual_ : (Ppxlib_ast__.Import.Asttypes.virtual_flag, 'a, 'a) Ppxlib__.Ast_pattern0.t
val concrete : (Ppxlib_ast__.Import.Asttypes.virtual_flag, 'a, 'a) Ppxlib__.Ast_pattern0.t
val pwith_type : (Ppxlib_ast__.Import.Longident.t, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.type_declaration, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.with_constraint, 'a, 'c) Ppxlib__.Ast_pattern0.t
val pwith_module : (Ppxlib_ast__.Import.Longident.t, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Longident.t, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.with_constraint, 'a, 'c) Ppxlib__.Ast_pattern0.t
val pwith_typesubst : (Ppxlib_ast__.Import.Longident.t, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.type_declaration, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.with_constraint, 'a, 'c) Ppxlib__.Ast_pattern0.t
val pwith_modsubst : (Ppxlib_ast__.Import.Longident.t, 'a, 'b) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Longident.t, 'b, 'c) Ppxlib__.Ast_pattern0.t -> (Ppxlib_ast__.Import.Parsetree.with_constraint, 'a, 'c) Ppxlib__.Ast_pattern0.t
val true_ : (Base.Bool.t, 'a, 'a) t
val false_ : (Base.Bool.t, 'a, 'a) t
val eint : (Base.Int.t, 'a, 'b) t -> (Ppxlib_ast__.Import.Parsetree.expression, 'a, 'b) t
val echar : (Base.Char.t, 'a, 'b) t -> (Ppxlib_ast__.Import.Parsetree.expression, 'a, 'b) t
val estring : (Base.String.t, 'a, 'b) t -> (Ppxlib_ast__.Import.Parsetree.expression, 'a, 'b) t
val efloat : (Base.String.t, 'a, 'b) t -> (Ppxlib_ast__.Import.Parsetree.expression, 'a, 'b) t
val eint32 : (Base.Int32.t, 'a, 'b) t -> (Ppxlib_ast__.Import.Parsetree.expression, 'a, 'b) t
val eint64 : (Base.Int64.t, 'a, 'b) t -> (Ppxlib_ast__.Import.Parsetree.expression, 'a, 'b) t
val enativeint : (Base.Nativeint.t, 'a, 'b) t -> (Ppxlib_ast__.Import.Parsetree.expression, 'a, 'b) t
val pint : (Base.Int.t, 'a, 'b) t -> (Ppxlib_ast__.Import.Parsetree.pattern, 'a, 'b) t
val pchar : (Base.Char.t, 'a, 'b) t -> (Ppxlib_ast__.Import.Parsetree.pattern, 'a, 'b) t
val pstring : (Base.String.t, 'a, 'b) t -> (Ppxlib_ast__.Import.Parsetree.pattern, 'a, 'b) t
val pfloat : (Base.String.t, 'a, 'b) t -> (Ppxlib_ast__.Import.Parsetree.pattern, 'a, 'b) t
val pint32 : (Base.Int32.t, 'a, 'b) t -> (Ppxlib_ast__.Import.Parsetree.pattern, 'a, 'b) t
val pint64 : (Base.Int64.t, 'a, 'b) t -> (Ppxlib_ast__.Import.Parsetree.pattern, 'a, 'b) t
val pnativeint : (Base.Nativeint.t, 'a, 'b) t -> (Ppxlib_ast__.Import.Parsetree.pattern, 'a, 'b) t
val single_expr_payload : (Ppxlib_ast__.Import.Parsetree.expression, 'a, 'b) t -> (Ppxlib_ast__.Import.Parsetree.payload, 'a, 'b) t
val no_label : (Ppxlib_ast__.Import.Parsetree.expression, 'a, 'b) t -> (Ppxlib__.Import.Asttypes.arg_label * Ppxlib_ast__.Import.Parsetree.expression, 'a, 'b) t
val attribute : name:(Base.String.t, 'a, 'b) t -> payload:(Ppxlib_ast__.Import.Parsetree.payload, 'b, 'c) t -> (Ppxlib_ast__.Import.Parsetree.attribute, 'a, 'c) t
val extension : (Base.String.t, 'a, 'b) t -> (Ppxlib_ast__.Import.Parsetree.payload, 'b, 'c) t -> (string Location.loc * Ppxlib_ast__.Import.Parsetree.payload, 'a, 'c) t
val elist : (Ppxlib_ast__.Import.Parsetree.expression, 'a -> 'a, 'b) t -> (Ppxlib_ast__.Import.Parsetree.expression, 'b Base.List.t -> 'c, 'c) t
type context
val of_func : (context -> Location.t -> 'a -> 'b -> 'c) -> ('a, 'b, 'c) t
val to_func : ('a, 'b, 'c) t -> context -> Location.t -> 'a -> 'b -> 'c
OCaml

Innovation. Community. Security.