Skip to content

Commit

Permalink
[e] (0) Replace fake BNF with real ABNF.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.whatwg.org/webapps@2675 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jan 16, 2009
1 parent 88275de commit 7472de6
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 51 deletions.
50 changes: 25 additions & 25 deletions index
Expand Up @@ -10188,20 +10188,23 @@ o............A....e
contents of the <code><a href=#script>script</a></code> element, if any, must be such
that the value of the DOM <code title=dom-script-text><a href=#dom-script-text>text</a></code>
attribute, which is derived from the element's contents, matches the
<code>documentation</code> production in the following ABNF. <a href=#refsABNF>[ABNF]</a></p> <!-- XXX
<code title="">documentation</code> production in the following
ABNF. <a href=#refsABNF>[ABNF]</a></p> <!-- XXX
ftp://ftp.rfc-editor.org/in-notes/std/std68.txt -->

<pre>documentation ::= *( *( space / tab / comment ) [ line-comment ] newline )
comment ::= slash star *( not-star / star not-slash ) 1*star slash
line-comment ::= slash slash *not-newline

; characters
space ::= &lt; a U+0020 SPACE character &gt;
tab ::= &lt; a U+0009 TAB character &gt;
newline ::= &lt; a U+000A LINE FEED character &gt;
star ::= &lt; a U+002A ASTERISK character &gt;
slash ::= &lt; a U+002F SOLIDUS character &gt;
not-star ::= &lt; a single Unicode character other than a U+002A ASTERISK character &gt;
not-slash ::= &lt; a single Unicode character other than a U+002F SOLIDUS character &gt;
not-newline ::= &lt; a single Unicode character other than a U+000A LINE FEED character &gt;</pre>
not-newline ::= &lt; a single Unicode character other than U+000A LINE FEED &gt;
not-star ::= &lt; a single Unicode character other than U+002A ASTERISK &gt;
not-slash ::= &lt; a single Unicode character other than U+002F SOLIDUS &gt;</pre>

<div class=example>

Expand Down Expand Up @@ -44129,27 +44132,24 @@ XXX Once we resolve the style="" issue, address these:
<p>This event stream format's MIME type is
<code>text/event-stream</code>.</p>

<p>The event stream format is (in pseudo-BNF):</p>

<pre>&lt;stream&gt; ::= &lt;bom&gt;? &lt;event&gt;*
&lt;event&gt; ::= [ &lt;comment&gt; | &lt;field&gt; ]* &lt;newline&gt;
&lt;comment&gt; ::= &lt;colon&gt; &lt;any-char&gt;* &lt;newline&gt;
&lt;field&gt; ::= &lt;name-char&gt;+ [ &lt;colon&gt; &lt;space&gt;? &lt;any-char&gt;* ]? &lt;newline&gt;

# characters:
&lt;bom&gt; ::= a single U+FEFF BYTE ORDER MARK character
&lt;space&gt; ::= a single U+0020 SPACE character (' ')
&lt;newline&gt; ::= a U+000D CARRIAGE RETURN character
followed by a U+000A LINE FEED character
| a single U+000D CARRIAGE RETURN character
| a single U+000A LINE FEED character
| the end of the file
&lt;colon&gt; ::= a single U+003A COLON character (':')
&lt;name-char&gt; ::= a single Unicode character other than
U+003A COLON, U+000D CARRIAGE RETURN and U+000A LINE FEED
&lt;any-char&gt; ::= a single Unicode character other than
U+000D CARRIAGE RETURN and U+000A LINE FEED
</pre>
<p>The event stream format is as described by the <code title="">stream</code> production of the following ABNF. <a href=#refsABNF>[ABNF]</a></p> <!-- XXX
ftp://ftp.rfc-editor.org/in-notes/std/std68.txt -->

<pre>stream ::= [ bom ] *event
event ::= *( comment / field ) end-of-line
comment ::= colon *any-char end-of-line
field ::= 1*name-char [ colon [ space ] *any-char ] end-of-line
end-of-line ::= ( cr lf / cr / lf / eof )
eof ::= &lt; matches repeatedly at the end of the stream &gt;</pre>

; characters
bom ::= &lt; a single U+FEFF BYTE ORDER MARK character &gt;
space ::= &lt; a single U+0020 SPACE character &gt;
colon ::= &lt; a single U+003A COLON character &gt;
cr ::= &lt; a single U+000D CARRIAGE RETURN character &gt;
lf ::= &lt; a single U+000A LINE FEED character &gt;
name-char ::= &lt; a single Unicode character other than U+003A COLON, U+000D CARRIAGE RETURN and U+000A LINE FEED &gt;
any-char ::= &lt; a single Unicode character other than U+000D CARRIAGE RETURN and U+000A LINE FEED &gt;

<p>Event streams in this format must always be encoded as
UTF-8.</p>
Expand Down
53 changes: 27 additions & 26 deletions source
Expand Up @@ -10795,21 +10795,23 @@ o............A....e
contents of the <code>script</code> element, if any, must be such
that the value of the DOM <code title="dom-script-text">text</code>
attribute, which is derived from the element's contents, matches the
<code>documentation</code> production in the following ABNF. <a
href="#refsABNF">[ABNF]</a></p> <!-- XXX
<code title="">documentation</code> production in the following
ABNF. <a href="#refsABNF">[ABNF]</a></p> <!-- XXX
ftp://ftp.rfc-editor.org/in-notes/std/std68.txt -->

<pre>documentation ::= *( *( space / tab / comment ) [ line-comment ] newline )
comment ::= slash star *( not-star / star not-slash ) 1*star slash
line-comment ::= slash slash *not-newline

; characters
space ::= &lt; a U+0020 SPACE character >
tab ::= &lt; a U+0009 TAB character >
newline ::= &lt; a U+000A LINE FEED character >
star ::= &lt; a U+002A ASTERISK character >
slash ::= &lt; a U+002F SOLIDUS character >
not-star ::= &lt; a single Unicode character other than a U+002A ASTERISK character >
not-slash ::= &lt; a single Unicode character other than a U+002F SOLIDUS character >
not-newline ::= &lt; a single Unicode character other than a U+000A LINE FEED character ></pre>
not-newline ::= &lt; a single Unicode character other than U+000A LINE FEED >
not-star ::= &lt; a single Unicode character other than U+002A ASTERISK >
not-slash ::= &lt; a single Unicode character other than U+002F SOLIDUS ></pre>

<div class="example">

Expand Down Expand Up @@ -50355,27 +50357,26 @@ XXX Once we resolve the style="" issue, address these:
<p>This event stream format's MIME type is
<code>text/event-stream</code>.</p>

<p>The event stream format is (in pseudo-BNF):</p>

<pre>&lt;stream&gt; ::= &lt;bom&gt;? &lt;event&gt;*
&lt;event&gt; ::= [ &lt;comment&gt; | &lt;field&gt; ]* &lt;newline&gt;
&lt;comment&gt; ::= &lt;colon&gt; &lt;any-char&gt;* &lt;newline&gt;
&lt;field&gt; ::= &lt;name-char&gt;+ [ &lt;colon&gt; &lt;space&gt;? &lt;any-char&gt;* ]? &lt;newline&gt;

# characters:
&lt;bom&gt; ::= a single U+FEFF BYTE ORDER MARK character
&lt;space&gt; ::= a single U+0020 SPACE character (' ')
&lt;newline&gt; ::= a U+000D CARRIAGE RETURN character
followed by a U+000A LINE FEED character
| a single U+000D CARRIAGE RETURN character
| a single U+000A LINE FEED character
| the end of the file
&lt;colon&gt; ::= a single U+003A COLON character (':')
&lt;name-char&gt; ::= a single Unicode character other than
U+003A COLON, U+000D CARRIAGE RETURN and U+000A LINE FEED
&lt;any-char&gt; ::= a single Unicode character other than
U+000D CARRIAGE RETURN and U+000A LINE FEED
</pre>
<p>The event stream format is as described by the <code
title="">stream</code> production of the following ABNF. <a
href="#refsABNF">[ABNF]</a></p> <!-- XXX
ftp://ftp.rfc-editor.org/in-notes/std/std68.txt -->

<pre>stream ::= [ bom ] *event
event ::= *( comment / field ) end-of-line
comment ::= colon *any-char end-of-line
field ::= 1*name-char [ colon [ space ] *any-char ] end-of-line
end-of-line ::= ( cr lf / cr / lf / eof )
eof ::= &lt; matches repeatedly at the end of the stream ></pre>

; characters
bom ::= &lt; a single U+FEFF BYTE ORDER MARK character >
space ::= &lt; a single U+0020 SPACE character >
colon ::= &lt; a single U+003A COLON character >
cr ::= &lt; a single U+000D CARRIAGE RETURN character >
lf ::= &lt; a single U+000A LINE FEED character >
name-char ::= &lt; a single Unicode character other than U+003A COLON, U+000D CARRIAGE RETURN and U+000A LINE FEED >
any-char ::= &lt; a single Unicode character other than U+000D CARRIAGE RETURN and U+000A LINE FEED >

<p>Event streams in this format must always be encoded as
UTF-8.</p>
Expand Down

0 comments on commit 7472de6

Please sign in to comment.