News for hackers. Stuff that matters.
Re:Railroad Diagram Generator: A tool for creating syntax di... by jakemoshenko on Monday December 21, 2015 @11:05AM (#10771680)
One of my favorite tools generates these for regexes, taking much of they mystery out of the syntax:

http://regexper.com/#(%3F%3ARailroad%7CRegex)%5Cs%2BDiagrams...

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

Re:Railroad Diagram Generator: A tool for creating syntax di... by detaro on Sunday December 20, 2015 @04:50PM (#10768414)
Does not involve railroads :/

That said, it seems to work well and produce nice graphics, so functionality is a win.

Re:Railroad Diagram Generator: A tool for creating syntax di... by jasode on Monday December 21, 2015 @07:00AM (#10770669)
>Does not involve railroads :/

Couldn't tell if you were joking but "railroad" is a common term-of-art for syntax diagrams. Example: https://en.wikipedia.org/wiki/Syntax_diagram

Re:Railroad Diagram Generator: A tool for creating syntax di... by detaro on Monday December 21, 2015 @08:07AM (#10770900)
Never heard them called that, and so I clicked the link with different expectations ;)
Re:Railroad Diagram Generator: A tool for creating syntax di... by Someone on Monday December 21, 2015 @09:35AM (#10771202)
Apple Pascal poster using syntax diagrams: http://www.pascal-central.com/pascal-syntax.html