EBNF 2 RailRoad
A command line tool to create nice documentation including railroad
diagrams based on the ISO/IEC 14977 specification
Installation
npm install -g ebnf2railroad
Usage
Usage: ebnf2railroad [options] <file>
Converts an ISO/IEC 14977 EBNF file to a HTML file with SVG railroad diagrams
Options:
-V, --version output the version number
-o, --target [target] output the file to target destination.
-q, --quiet suppress output to STDOUT
--validate exit with status code 2 if ebnf document has warnings
-h, --help output usage information
this will produce a my-definition.html
output file
Check the examples folder for an example input file ebnf.ebnf
and the
generated result page ebnf.html
View online
Licence
The code is licensed under MIT (see LICENSE file).
Acknowledgements