bnf

2021-10-21

BNF example generator. Useful for testing parser.

Upstream URL

github.com/hyotang666/bnf

Author

SATO Shinichi

License

MIT
README
Provided Systems

bnf 0.0.0

BNF example generator.

Altenatives and differences

cl-string-generatorcl-gimeibnf
generateany stringjapanese name and adressany string
viaregular expressionbnf
returnone shot valueone shot valuecomprehensive list

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