Skip to content

Commit fdb1449

Browse files
committed
Package bnfgen.4.0.0
1 parent 717e57b commit fdb1449

File tree

1 file changed

+39
-0
lines changed
  • packages/bnfgen/bnfgen.4.0.0

1 file changed

+39
-0
lines changed

packages/bnfgen/bnfgen.4.0.0/opam

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
opam-version: "2.0"
2+
synopsis:
3+
"Random text generator that takes context-free grammars from BNF files"
4+
description: """\
5+
BNFGen generates random texts based on user-defined context-free grammars
6+
specified in a BNF-like syntax. There are descriptive syntax error messages
7+
and tracing options.
8+
9+
You can specify "weight" for rules with alternation to influence their probabilities.
10+
For example, in `<foo> ::= 10 <foo> "foo" | "foo";` the first (recursive) option will be
11+
taken ten times more often.
12+
13+
You can also specify deterministic repetition ranges, like `<foo>{4}` (exactly four of `<foo>`)
14+
or `<foo>{1,5}` (from one to five of `<foo>`).
15+
16+
This package includes both a library and a CLI tool based on it."""
17+
maintainer: "Daniil Baturin <[email protected]>"
18+
authors: "Daniil Baturin <[email protected]>"
19+
license: "MIT"
20+
homepage: "https://baturin.org/tools/bnfgen"
21+
bug-reports: "https://github.com/dmbaturin/bnfgen/issues"
22+
depends: [
23+
"ocaml" {>= "4.08"}
24+
"menhir" {>= "20211128"}
25+
"dune" {>= "1.9.0"}
26+
]
27+
build: [
28+
["dune" "subst"] {dev}
29+
["dune" "build" "-p" name "-j" jobs]
30+
]
31+
dev-repo: "git+https://github.com/dmbaturin/bnfgen"
32+
url {
33+
src: "https://github.com/dmbaturin/bnfgen/archive/refs/tags/4.0.0.tar.gz"
34+
checksum: [
35+
"md5=0caf99c1e3293bb7c3e72a7fb3f78fd7"
36+
"sha512=4e8e4f87531b0e295e4f8c095745d4395a9ed487fff3133d4d493f9d8b8ea7e470dde44639b0891c5e1fca71cde4585500db57cbb710d5d5220e1ef7a7f98b74"
37+
]
38+
}
39+
x-maintenance-intent: ["(latest)"]

0 commit comments

Comments
 (0)