W3C home > Mailing lists > Public > w3c-wai-er-ig@w3.org > December 2000

Re: Backus Naur Form (BNF) to XML

From: Sean B. Palmer <sean@mysterylights.com>
Date: Sun, 17 Dec 2000 17:33:02 -0000
Message-ID: <006301c0684f$6af7be60$71ac89d4@z5n9x1>
To: <w3c-wai-er-ig@w3.org>, "Leonard R. Kasday" <kasday@acm.org>
[Forgive me, I'm having one of those overly productive days]
> If anyone knows of something like this, please post it,

1. CSS2 is expressed in EBNF: http://www.w3.org/TR/PR-CSS2/grammar.html

2. So is XML (thanks to Jelks):
http://cpcug.org/user/jelks/XML/xmlebnf.html

3. Lots of programming languages can be expressed in BNF:
http://cui.unige.ch/db-research/Enseignement/analyseinfo/BNFweb.html

4. Not sure about HTML: "EBNF is also used in many other standards, such as
definitions of protocol formats, data formats and markup languages such as
XML and SGML. (HTML is not defined with a grammar, instead it is defined
with an SGML DTD, which is sort of a higher-level grammar.)" -
http://www.stud.ifi.uio.no/~lmariusg/download/artikler/bnf.html#id3 But
HTML can be converted into XML (XHTML) anyway, so who cares?

5. I think EBNF/BNF describe the langauges themselves rather than outputs
of those langauges, but I could be wrong (I only ever looked at EBNF once
before.....).

6. I don't think this HTML parse tree is in (E)BNF, but it looks
interesting all the same:
http://validator.w3.org/check?uri=http%3A%2F%2Fwww.w3.org%2F&sp=#parse

That's the lot. Hoping as ever that this is useful rather than
distractive...

Kindest Regards,
Sean B. Palmer
http://www.mysterylights.com/sbp/
"Perhaps, but let's not get bogged down in semantics."
   - Homer J. Simpson, BABF07.
Received on Sunday, 17 December 2000 12:34:28 GMT

This archive was generated by hypermail 2.2.0 + w3c-0.30 : Thursday, 9 June 2005 12:10:38 GMT