4 ms·
Railroad Diagram Generator: A tool for creating syntax diagrams
- detaro 11y agoDoes not involve railroads :/ That said, it seems to work well and produce nice graphics, so functionality is a win.
- jasode 11y ago>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 https://en.wikipedia.org/wiki/Syntax_diagram
- detaro 11y agoNever heard them called that, and so I clicked the link with different expectations ;)
- dexen 11y agoRailroad 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
- Someone 11y agoApple Pascal poster using syntax diagrams: http://www.pascal-central.com/pascal-syntax.html http://www.pascal-central.com/pascal-syntax.html
- jakemoshenko 11y agoOne 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!%3F http://regexper.com/#(%3F%3ARailroad%7CRegex)%5Cs%2BDiagrams...