bnf
2022-02-20
BNF example generator. Useful for testing parser.
bnf 0.0.0
BNF example generator especially for comprehensive test.
Altenatives and differences
name | generate | via | return |
---|---|---|---|
cl-string-generator | any string | regex | one value |
cl-gimei | japanese name, adress | one value | |
lorem-ipsum | text for place-holder | one value | |
chancery | any string | rule | one value |
cl-diceware | pass phrase | dice | one value |
bnf | any string | bnf | comprehensive list |
If you want bnf parser generator, the projects below may what you want.
Usage
(bnf:examples (integer (sign? digit+ dot?)) (sign? (or "" #\+ #\-)) (digit+ (or . #.(coerce "1234567890" 'list)) :max 3) (dot? (or "" #\.))) => ("7" "546." "+26" "+794." "-32" "-1.")
From developer
Product's goal
Already?
License
MIT
Developed with
SBCL
Tested with
- SBCL/2.1.7
- CCL/1.12.1
- CLISP/2.49
- ECL/21.2.1
- Allegro/10.1
- CMUCL/21D
- ABCL/1.8.0