|
Project Information
Links
|
A JavaScript library for generating railroad diagrams like those used to describe languages' grammars. The JavaScript library lets you define grammars using declarative-style calls: each('[',
any('value', ','),
']')to specify any number of comma separated values surrounded by square brackets. See the example JSON grammar. To use this library, simply download and include (via <script src=...></script>) the JavaScript library. railroad.js will not work in browsers that do not support the CSS3 border-top-left-radius property. Luckily, all recent (as of Nov. 2010) major browsers do so. |