Hernán Eche
Hernán Eche

Reputation: 6908

What are these diagrams called? (answer : railroad diagrams)

I have seen a lot of these diagrams in some help files and src documentation

What are they called? Are there any other (for same purpose) known diagrams?

enter image description here

Img source : http://www.sqlite.org/images/syntax/insert-stmt.gif

Upvotes: 4

Views: 1077

Answers (2)

user2100815
user2100815

Reputation:

They are called "railroad diagrams", because of their resemblance to a railroad track. They were often used to describe the grammar of older languages, before more formal grammars became routinely used. The problem with them is you can't easily feed them into tools like parser generators, or grammar checkers, so they are not used so much these days.

Upvotes: 9

Howard
Howard

Reputation: 39217

They are called syntax diagrams.

Upvotes: 4

Related Questions