Prcedure to install abnfgen
What is “abnfgen” Package?
Quickly generate random documents that match an ABFN grammar
Given an Augmented Backus-Naur form (ABNF) grammar (Wikipedia, RFC 4234), abnfgen quickly generates lots of random documents that match that grammar.
$ cat GRAMMAR ring = 1*12("ding" SP) "dong" CRLF $ ./abnfgen GRAMMAR DInG DiNg doNg |
For more details: http://www.quut.com/abnfgen/
Installation
- Open Terminal by pressing
command+space
then type terminal and hitEnter
key. - Install homebrew first.
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null
- Install abnfgen.
brew install abnfgen
Now, use abnfgen!
That’s useful for
- verifying an ABNF grammar’s syntactical correctness
- illustrating a grammar with non-obvious examples
- testing software that is supposed to consume documents described by a grammar
The tool is in alpha and, while copyrighted, free for any use.