Make.Patttype head = X.tThe type of primitives.
type path = Path.tThe type of paths.
type node = M.nodeMicheline nodes.
focus_matches patt matches converts a list of matches for a contextual pattern patt into the list of matches for the focused sub-pattern. Returns the empty list if there is no focused subpattern.
val int : (Z.t -> bool) option -> tMatches an integer, with an optional predicate.
val string : (string -> bool) option -> tMatches a string, with an optional predicate.
val bytes : (Stdlib.Bytes.t -> bool) option -> tMatches a bytes, with an optional predicate.
prim hd subpatts constructs a pattern matching a primitive application with primitive equal to head and the specified subterms pattern subpatts.
More general version of prim where an arbitrary predicate on primitives can be used.
val any : tMatches anything.
Flags a pattern as being a focus of the pattern. There can be several foci per pattern but they cannot be nested (an error is raised in this case).
val list_any : plistMatches any list of patterns.
val list_empty : plistMatches the empty list of pattern.
val pp : Stdlib.Format.formatter -> t -> unitPretty-printing.
val uid : t -> intReturns a unique id for patterns. Two patterns with the same uid are physically equal, but not necessarily the other way around (except in hash-consing mode).