Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Railroad diagrams - what do the double bars on the ends mean?

Tags:

json

In the json site, the number and string diagrams are book-ended by double bars.

What do the double bars mean?


(source: json.org)


(source: json.org)

like image 651
Steve Avatar asked Jun 07 '10 00:06

Steve


People also ask

How to read a railroad diagram?

Each railroad diagram begins with a double right arrow and ends with a right and left arrow pair. Lines that begin with a single right arrow are continuation lines. You read a railroad diagram from left to right and from top to bottom, following the direction of the arrows.

What is a railway diagram?

Train schedule diagram is a kind of a chart in which information of operational schedules of railway is illustrated. Train schedule diagrams (diagrams, in short) are by far the most important charts in railway operation because various kinds of and huge amount of information is stored in a very compact manner.


2 Answers

  • One bar: whitespace can be inserted between pairs of tokens.
  • Two bars: no whitespace allowed between pairs of tokens.
like image 95
Peter Avatar answered Oct 19 '22 21:10

Peter


Single bars denote an element that is a "first-class" element (e.g. object, value), double bars delimit an element that is a subcomponent of another.

like image 30
Tony the Pony Avatar answered Oct 19 '22 19:10

Tony the Pony