Skip to content

Repository files navigation

grammar2arbitrary

Generate fast-check arbitraries from a grammar

Installation

npm install --save-dev @ericcornelissen/grammar2arbitrary

Usage

Put a grammar to generate form in a file and invoke grammar2arbitrary

grammar2arbitrary --inFile grammar.ohm --outFile dist.js --base Bar --export foo

For more information

grammar2arbitrary --help

Grammars

The only supported grammer is Ohm, read more in our Ohm docs.

License

The source code is licensed under the Apache-2.0 license, see LICENSE for the full license text.

Used by

Contributors

Languages