views:

70

answers:

4

Hello,

In json.org website you can see several diagrams (which I don't know that correct term to describe) that shows the whole valid syntax of the language. For example http://json.org/object.gif

How do these diagrams called?

What software do you use to create them?

Thank you, Maxim.

+1  A: 

Railroad/Syntax diagrams can be created by different software.

Here is a generator for Ruby.

Here is one in Haskell, and one in Latex.

Oded
A: 

I've seen them called both Syntax diagrams and Railroad diagrams -- there are tools out there for generating them, for example this one for Ruby or this plugin for Latex

Rowland Shaw
What software do you think Douglas Crockford used when describing JSON? I have a home made created language which I would like to describe using "rail road".
Maxim Veksler
+1  A: 

According to http://stackoverflow.com/questions/796824/tool-for-generating-railroad-diagram-used-on-json-org, the diagrams on the JSON website were created with Visio.

But I doubt it transforms BNF grammars into syntax diagrams.

Pierre Gardin
A: 

Not sure if that's what you want, but ANTLRWorks is an editor for the parser generator ANTLR that displays these diagrams on-the-fly:

Antlrworks

nikie