3 ms·
Railroad Diagrams are used to great effect in SQLite documentation, for description of mandatory/optional syntax elements, for example: https://www.sqlite.org/
by dexen 11y ago
Railroad Diagrams are used to great effect in SQLite documentation, for description of mandatory/optional syntax elements, for example:
https://www.sqlite.org/lang_update.html https://www.sqlite.org/lang_update.html
https://www.sqlite.org/lang_createtable.html https://www.sqlite.org/lang_createtable.html
However the SQLite project seems to be using different tool, implemented in Tcl: http://wiki.tcl-lang.org/21708 http://wiki.tcl-lang.org/21708 .
- drunkenfly 11y agoOracle uses such diagrams for many years. This is an example: https://docs.oracle.com/cd/B28359_01/server.111/b28286/statements_10002.htm https://docs.oracle.com/cd/B28359_01/server.111/b28286/state...
- kwhitefoot 11y agoPascal was described with such diagrams in Wirth's Pascal User Manual 1975 and they were not new then. They made learning Pascal much easier than trying to interpret BNF.
- LoSboccacc 11y agosaw it on the json page as well http://json.org/ http://json.org/ but I'm not into grammars. I used antlr once, and they did support that as well in the designer http://www.antlr3.org/works/screenshots/ambiguouspath.jpg http://www.antlr3.org/works/screenshots/ambiguouspath.jpg