W3C home > Mailing lists > Public > w3c-sgml-wg@w3.org > July 1997

Re: reforming the grammar notation

From: Dave Peterson <davep@acm.org>
Date: Sat, 19 Jul 1997 21:18:35 -0400
Message-Id: <v01540b02aff713a3ae50@[206.119.238.196]>
To: w3c-sgml-wg@w3.org
At 8:47 AM 7/17/97, Dan Connolly wrote:

>Bert looked into this, and he came up with:

>clearer if Bison had accepted some common notations for grammars. The
>grammar that is actually intended is as follows:
>
>document: prolog element misc*;
>prolog: VERSION? ENCODING? misc*;
>misc: COMMENT | attribute_decl;
>attribute_decl: ATTDEF NAME attribute+ ENDDEF;
>element: START attribute* empty_or_content;
>empty_or_content: SLASH CLOSE | CLOSE content END NAME? CLOSE;
>content: (DATA | misc | element)*;
>attribute: NAME (EQ VALUE)?;

Attribute declarations outside the prolog?  I hope not.

Dave Peterson
SGMLWorks!

davep@acm.org
Received on Saturday, 19 July 1997 21:17:38 EDT

This archive was generated by hypermail pre-2.1.9 : Wednesday, 24 September 2003 10:04:46 EDT