<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="1" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[1]</anchor-end> <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">DocBook</anchor> には <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">EBNF</anchor> をマークするための optional
な語彙があります。</p><ul><li><code class="SGMLe"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">productionset</anchor></code> (共通属性; <code class="SGML">((<code class="SGMLe"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">title</anchor></code>, <code class="SGMLe"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">titleabbrev</anchor></code>?)?, (<code class="SGMLe">production</code> | <code class="SGMLe"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">productionrecap</anchor></code>)+)</code>):
生成規則集合。<ul><li><code class="SGMLe"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">production</anchor></code> (共通属性;
<code class="SGML">(<code class="SGMLe">lhs</code>, <code class="SGMLe">rhs</code>, <code class="SGMLe">constraint</code>*)</code>):
生成規則を表します。<ul><li><code class="SGMLe"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">lhs</anchor></code> (共通属性; <code class="SGML"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">PCDATA</anchor></code>: 非終端記号名):
左辺を記述します。</li><li><code class="SGMLe"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">rhs</anchor></code> (共通属性; <code class="SGML">(#<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">PCDATA</anchor> | <code class="SGMLe">lineannotation</code> | <code class="SGMLe">nonterminal</code> | <code class="SGMLe"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">sbr</anchor></code>)*</code>):
右辺を記述します。注釈は <code class="SGMLe">lineannotation</code> で、
非終端記号は <code class="SGMLe">nonterminal</code> で、
改行候補箇所は <code class="SGMLe">sbr</code> で記述します。
それ以外は直接<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">文字データ</anchor>として記述します。<ul><li><code class="SGMLe"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">nonterminal</anchor></code> (@<code class="SGMLa"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">def</anchor></code>=<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">URI参照</anchor>: 
必須: 定義への参照, 共通属性; <code class="SGML"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">PCDATA</anchor></code>: 非終端記号名):
非終端記号を表します。文法規則外の文章でも使えます。</li></ul></li><li><code class="SGMLe"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">constraint</anchor></code> (@<code class="SGMLa"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">linkend</anchor></code>=<code class="SGML"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">IDREF</anchor></code>: 必須, 共通属性; 強制空要素):
文法的に表現できない制約を参照します。</li></ul></li><li><code class="SGMLe"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">productionrecap</anchor></code> (@<code class="SGMLa"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">linkend</anchor></code>=<code class="SGML"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">IDREF</anchor></code>: 必須: <code class="SGMLe">production</code>, 共通属性; 強制空要素):
生成規則の複製を挿入します (主として読者の理解のための再掲)。</li></ul></li><li><code class="SGMLe"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">constraintdef</anchor></code> (共通属性; <code class="SGML">(<code class="SGMLe"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">title</anchor></code>, <var>ブロック系</var>)</code>):
文法的に表現できない制約を記述します。
文法規則外の文章の一部として記述できます。内容も普通の文章です。</li></ul></body></html>