opam-version: "2.0" maintainer: "Petter A. Urkedal " authors: [ "Petter A. Urkedal " "Gabriel Radanne " ] license: "LGPL-3.0-or-later WITH LGPL-3.0-linking-exception" homepage: "https://github.com/paurkedal/ppx_regexp" bug-reports: "https://github.com/paurkedal/ppx_regexp/issues" depends: [ "ocaml" {>= "4.02.3"} "dune" {>= "1.11"} "ppxlib" {>= "0.9.0" & < "0.36.0"} "re" {>= "1.7.2"} "qcheck" {with-test} ] build: ["dune" "build" "-p" name "-j" jobs] dev-repo: "git+https://github.com/paurkedal/ppx_regexp.git" synopsis: "Matching Regular Expressions with OCaml Patterns" description: """ This syntax extension turns match%pcre x with | {|re1|} -> e1 ... | {|reN|} -> eN | _ -> e0 into suitable invocations to the ocaml-re library. The patterns are plain strings of the form accepted by `Re_pcre`, except groups can be bound to variables using the syntax `(?...)`. The type of `var` will be `string` if a match is of the groups is guaranteed given a match of the whole pattern, and `string option` if the variable is bound to or nested below an optionally matched group. """ url { src: "https://github.com/paurkedal/ppx_regexp/releases/download/v0.5.1/ppx_regexp-v0.5.1.tbz" checksum: [ "sha256=25083bc47c6ca224b52d958e3272c938c1115895446ed526ca330f03a2d50ca8" "sha512=e9e8888b8f4cf4f7b2aab38af8e835f716a5b973b7a48ae329daafcc80b705bc8f839f6f76364699804903cc7f9ae6d5d69d9cf0f257c007558ff9f0fbf6d357" ] } x-commit-hash: "6d583527146f117d0ba06a0fd3e070bcc8b83fe3"