this repo has no description
1opam-version: "2.0"
2maintainer: "paurkedal@gmail.com"
3authors: ["Petter A. Urkedal <paurkedal@gmail.com>"]
4homepage: "https://github.com/paurkedal/ppx_regexp"
5bug-reports: "https://github.com/paurkedal/ppx_regexp/issues"
6dev-repo: "git+https://github.com/paurkedal/ppx_regexp.git"
7license: "LGPL-3.0-only WITH OCaml-LGPL-linking-exception"
8build: [
9 "jbuilder" "build" "--root" "." "-j" jobs
10 "--no-config" {jbuilder:version >= "1.0+beta18"}
11 "@install"
12]
13depends: [
14 "ocaml" {>= "4.02.3"}
15 "jbuilder"
16 "ocaml-migrate-parsetree" {< "2.0.0"}
17 "re" {>= "1.7.2"}
18 "ppx_tools_versioned"
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.3.2/ppx_regexp-0.3.2.tbz"
39 checksum: [
40 "sha256=318e6dcfd9b7faa75d5b54f91a44d7a976c95122a0e35a0497db5d790479e806"
41 "md5=e98e79d9e72803f69c81282cceabdaaa"
42 ]
43}