views:

73

answers:

2

I found this diagram in the JSON specification:

alt text

Where does this diagramming convention come from? Is it just some random convention cooked up by D.C.?

+5  A: 

That's called a railroad diagram. Have a look at the wikipedia article for more information.

Bryan Kyle
+3  A: 

That diagram is known as a syntax diagram or railroad diagram. It's used to visually represent context-free grammars. It's a graphical depiction of the Extended Backus-Naur Form, which is also used to represent context-free grammars.

Thomas Owens