bnf

2022-02-20

BNF example generator. Useful for testing parser.

Upstream URL

github.com/hyotang666/bnf

Author

SATO Shinichi

License

MIT
README

bnf 0.0.0

BNF example generator especially for comprehensive test.

Altenatives and differences

namegenerateviareturn
cl-string-generatorany stringregexone value
cl-gimeijapanese name, adressone value
lorem-ipsumtext for place-holderone value
chanceryany stringruleone value
cl-dicewarepass phrasediceone value
bnfany stringbnfcomprehensive list

If you want bnf parser generator, the projects below may what you want.

  • cl-abnf: ABNF Parser Generator, per RFC2234.
  • cl-bnf: A simple BNF parser.

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

Installation

Dependencies (3)

  • jingoh
  • trestrul
  • uiop

Dependents (1)

  • GitHub
  • Quicklisp