-
Notifications
You must be signed in to change notification settings - Fork 4
/
bnfgen.opam
33 lines (30 loc) · 1.14 KB
/
bnfgen.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
opam-version: "2.0"
name: "bnfgen"
version: "3.1.0"
synopsis: "Random text generator that takes context-free grammars from BNF files"
description: """
BNFGen generates random texts based on user-defined context-free grammars
specified in a BNF-like syntax. There are descriptive syntax error messages
and tracing options.
You can specify "weight" for rules with alternation to influence their probabilities.
For example, in `<foo> ::= 10 <foo> "foo" | "foo";` the first (recursive) option will be
taken ten times more often.
You can also specify deterministic repetition ranges, like `<foo>{4}` (exactly four of `<foo>`)
or `<foo>{1,5}` (from one to five of `<foo>`).
This package includes both a library and a CLI tool based on it.
"""
maintainer: "Daniil Baturin <[email protected]>"
authors: "Daniil Baturin <[email protected]>"
license: "MIT"
homepage: "https://baturin.org/tools/bnfgen"
bug-reports: "https://github.com/dmbaturin/bnfgen/issues"
dev-repo: "git+https://github.com/dmbaturin/bnfgen"
build: [
["dune" "subst"] {dev}
["dune" "build" "-p" name "-j" jobs]
]
depends: [
"ocaml" {>= "4.08"}
"menhir" {>= "20211128"}
"dune" {>= "1.9.0"}
]