File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed
packages/ppx_regexp/ppx_regexp.0.5.1 Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change 1+ opam-version: "2.0"
2+ maintainer: "Petter A. Urkedal <
[email protected] >"
3+ authors: [
4+ "Petter A. Urkedal <
[email protected] >"
5+ "Gabriel Radanne <
[email protected] >"
6+ ]
7+ license: "LGPL-3.0-or-later WITH LGPL-3.0-linking-exception"
8+ homepage: "https://github.com/paurkedal/ppx_regexp"
9+ bug-reports: "https://github.com/paurkedal/ppx_regexp/issues"
10+ depends: [
11+ "ocaml" {>= "4.02.3"}
12+ "dune" {>= "1.11"}
13+ "ppxlib" {>= "0.9.0"}
14+ "re" {>= "1.7.2"}
15+ "qcheck" {with-test}
16+ ]
17+ build: ["dune" "build" "-p" name "-j" jobs]
18+ dev-repo: "git+https://github.com/paurkedal/ppx_regexp.git"
19+ synopsis: "Matching Regular Expressions with OCaml Patterns"
20+ description: """
21+ This syntax extension turns
22+
23+ match%pcre x with
24+ | {|re1|} -> e1
25+ ...
26+ | {|reN|} -> eN
27+ | _ -> e0
28+
29+ into suitable invocations to the ocaml-re library. The patterns are plain
30+ strings of the form accepted by `Re_pcre`, except groups can be bound to
31+ variables using the syntax `(?<var>...)`. The type of `var` will be
32+ `string` if a match is of the groups is guaranteed given a match of the
33+ whole pattern, and `string option` if the variable is bound to or nested
34+ below an optionally matched group.
35+ """
36+ url {
37+ src:
38+ "https://github.com/paurkedal/ppx_regexp/releases/download/v0.5.1/ppx_regexp-v0.5.1.tbz"
39+ checksum: [
40+ "sha256=25083bc47c6ca224b52d958e3272c938c1115895446ed526ca330f03a2d50ca8"
41+ "sha512=e9e8888b8f4cf4f7b2aab38af8e835f716a5b973b7a48ae329daafcc80b705bc8f839f6f76364699804903cc7f9ae6d5d69d9cf0f257c007558ff9f0fbf6d357"
42+ ]
43+ }
44+ x-commit-hash: "6d583527146f117d0ba06a0fd3e070bcc8b83fe3"
You can’t perform that action at this time.
0 commit comments