-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathppx_regexp.opam
35 lines (33 loc) · 1.14 KB
/
ppx_regexp.opam
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
opam-version: "2.0"
maintainer: "Petter A. Urkedal <[email protected]>"
authors: [
"Petter A. Urkedal <[email protected]>"
"Gabriel Radanne <[email protected]>"
]
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"}
"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 `(?<var>...)`. 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.
"""