News for hackers. Stuff that matters.
Re:Railroad Diagram Generator: A tool for creating syntax di... by dexen on Monday December 21, 2015 @06:13AM (#10770582)
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_createtable.html

However the SQLite project seems to be using different tool, implemented in Tcl: http://wiki.tcl-lang.org/21708 .

Re:Railroad Diagram Generator: A tool for creating syntax di... by drunkenfly on Monday December 21, 2015 @06:33AM (#10770618)
Oracle uses such diagrams for many years.

This is an example: https://docs.oracle.com/cd/B28359_01/server.111/b28286/state...

Re:Railroad Diagram Generator: A tool for creating syntax di... by kwhitefoot on Monday December 21, 2015 @09:33AM (#10771190)
Pascal 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.

Re:Railroad Diagram Generator: A tool for creating syntax di... by LoSboccacc on Monday December 21, 2015 @06:50AM (#10770649)
saw it on the json page as well

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