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]
7homepage: "https://github.com/paurkedal/ppx_regexp"
8bug-reports: "https://github.com/paurkedal/ppx_regexp/issues"
9dev-repo: "git+https://github.com/paurkedal/ppx_regexp.git"
10license: "LGPL-3.0-only WITH OCaml-LGPL-linking-exception"
11build: ["dune" "build" "-p" name "-j" jobs]
12depends: [
13 "ocaml" {>= "4.02.3"}
14 "dune"
15 "ocaml-migrate-parsetree" {< "2.0.0"}
16 "re" {>= "1.7.1"}
17 "ppx_tools_versioned"
18 "qcheck" {with-test}
19]
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."""
36url {
37 src:
38 "https://github.com/paurkedal/ppx_regexp/releases/download/v0.4.0/ppx_regexp-0.4.0.tbz"
39 checksum: [
40 "sha256=b2cf63433078114cf9cf3cef1ffedbd7e2adb0a85bcafa563c3bd994b9299c2b"
41 "md5=44691d6e1c6c02300329a4eb769922ab"
42 ]
43}