Using Backus-Naur Format?

  • Thread starter Thread starter clintonG
  • Start date Start date
C

clintonG

Do you have any references to documentation for Backus-Naur Format or
Extended Backus-Naur Format?
This syntax is common and used practically everywhere but damn if I can find
the 'official' documentation or decent document(s) to learn more of the
syntax than I know how to use at this time.

<%= Clinton Gallagher
 
clintonG said:
Do you have any references to documentation for Backus-Naur Format or
Extended Backus-Naur Format?
This syntax is common and used practically everywhere but damn if I can find
the 'official' documentation or decent document(s) to learn more of the
syntax than I know how to use at this time.

A couple of links:
http://cui.unige.ch/db-research/Enseignement/analyseinfo/AboutBNF.html
http://www.garshol.priv.no/download/text/bnf.html

Links from those may have more detail.
 
Maybe i'm just being ornery and in need of sleep. But, it struck me
that the second article leaves a bit to be desired?

Maybe I'm completely wrong but the guy doesn't make the point that BNF
or EBNF it is possible to make a language that is not parsable by a
strictly LALR compiler (avoids reduce reduce conflicts). So the
article goes into a really high level view of kinds of languages, but
doesn't really explain the relationship between that and [E]BNF. He's
just "golly, write your BNF and give it to yacc".
 
Good. Thanks Jon.
The second link was a tad more expressive than the first. I'm not into
YACC(ing) ;-) but simply wanted to learn more of the syntax for various
reasons. Writing a DTD some time ago was a real challenge as is reading W3C
specifications without broader understanding of BNF.

<%= Clinton Gallagher
 
Back
Top