"PIEBALD" <PI*****@discussions.microsoft.com> wrote in message
news:1A**********************************@microsof t.com...
What is a "railroad diagram"?
Exactly. And if Microsoft doesn't know...
unfair. If Nick Malik doesn't know... Microsoft has 60,000 people. I speak
for one.
Anyway, like Pascal syntax diagrams, they describe grammars. If you search
the web you can find lots of examples, but no definitive specification.
The
closest I've found is at:
http://www.serve.com/~josh/books/jav...ef/ch01_05.htm
But even this really just gives a few simple examples. I guess it's
difficult to define a grammar for a diagram.
The link you provided gives you the answer: Railroad diagrams are simply a
visual representation for BNF. They are visual to make them easier to READ.
It says nothing about making grammars easier to write. My guess is that the
authors of this diagram are using it for illustration, but have no intention
of actually using it to create a new grammar. They would still use BNF for
that.
It is difficult to define a grammar for anything. Diagrams are not harder
than other mechanisms. UML is a diagramming grammar.
The fact that you cannot find a grammar for this diagram type may simply be
because no one was interested in using it for more than simple illustration.
(my guess only)
--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik
Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--