package ppxx

  1. Overview
  2. Docs

Patterns

val var' : ?loc:Ast_405.Location.t -> ?attrs:Ast_405.Ast_helper.attrs -> string -> Ast_405.Parsetree.pattern

Create a pattern variable.

val unit : unit -> Ast_405.Parsetree.pattern

Translate an expression as a pattern. For example, of_expr (Expr.parse "(x, y)") returns an AST for (x, y).

Imported from Ast_helper

OCaml

Innovation. Community. Security.