Railroad diagrams - what do the double bars on the

2020-03-01 15:52发布

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)

标签: json
2条回答
够拽才男人
2楼-- · 2020-03-01 16:53
  • One bar: whitespace can be inserted between pairs of tokens.
  • Two bars: no whitespace allowed between pairs of tokens.
查看更多
戒情不戒烟
3楼-- · 2020-03-01 16:58

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.

查看更多
登录 后发表回答