this repo has no description
1opam-version: "2.0"
2maintainer: "Petter A. Urkedal <paurkedal@gmail.com>"
3authors: [
4 "Petter A. Urkedal <paurkedal@gmail.com>"
5 "Gabriel Radanne <drupyog@zoho.com>"
6]
7license: "LGPL-3.0-only WITH OCaml-LGPL-linking-exception"
8homepage: "https://github.com/paurkedal/ppx_regexp"
9bug-reports: "https://github.com/paurkedal/ppx_regexp/issues"
10depends: [
11 "ocaml" {>= "4.02.3"}
12 "dune"
13 "ocaml-migrate-parsetree" {< "2.0.0"}
14 "re" {>= "1.7.1"}
15 "ppx_tools_versioned"
16 "qcheck" {with-test}
17]
18build: ["dune" "build" "-p" name "-j" jobs]
19dev-repo: "git+https://github.com/paurkedal/ppx_regexp.git"
20synopsis: "Matching Regular Expressions with OCaml Patterns"
21description: """
22This syntax extension turns
23
24 match%pcre x with
25 | {|re1|} -> e1
26 ...
27 | {|reN|} -> eN
28 | _ -> e0
29
30into suitable invocations to the ocaml-re library. The patterns are plain
31strings of the form accepted by `Re_pcre`, except groups can be bound to
32variables using the syntax `(?<var>...)`. The type of `var` will be
33`string` if a match is of the groups is guaranteed given a match of the
34whole pattern, and `string option` if the variable is bound to or nested
35below an optionally matched group.
36"""
37url {
38 src:
39 "https://github.com/paurkedal/ppx_regexp/releases/download/v0.4.2/ppx_regexp-v0.4.2.tbz"
40 checksum: [
41 "sha256=74ca16b89a3541f418c459e50a8a994822676c4decf102af6b5b997835a2c788"
42 "md5=a75a929d78334cb48a6cfec9c3e0506c"
43 ]
44}