<html xmlns="http://www.w3.org/1999/xhtml" a0:Name="SuikaWiki" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:Version="0.9"><head></head><body><p><a0:anchor-end a0:anchor="1">[1]</a0:anchor-end> <ul><li><code class="ABNF"><dfn>字句模型</dfn> := (<a0:anchor>引数表記</a0:anchor> / <a0:anchor>外部識別子</a0:anchor>) 1*<a0:anchor>ps</a0:anchor> <a0:anchor>記法名</a0:anchor> [ <a0:anchor>データ属性指定</a0:anchor> ] </code></li></ul></p><p>引数表記の値や外部識別子で参照されるデータは、
指定された記法によって表現された、<a0:anchor>字句型</a0:anchor>の模型です。</p><p>仕様書: <a0:anchor>ISO/IEC 10744</a0:anchor>:1997 A.2.1.1
<a0:anchor-external a0:resScheme="URI" a0:resParameter="http://www.y12.doe.gov/sgml/wg8/docs/n1920/html/clause-A.2.1.html#clause-A.2.1.1">http://www.y12.doe.gov/sgml/wg8/docs/n1920/html/clause-A.2.1.html#clause-A.2.1.1</a0:anchor-external></p><p><a0:anchor-end a0:anchor="2">[2]</a0:anchor-end> 字句模型は<a0:anchor>字句型宣言</a0:anchor>で使用しますが、
字句型宣言では字句模型の代わりに <samp class="SGML">SPEC <var>外部識別子</var></samp>
という指定もできます。この場合は、外部識別子の参照先は機械処理で使用しないものになります。
(自然言語による字句型の定義かもしれません。)</p><a0:form ref="comment"></a0:form><section><h1>字句模型記法</h1><p><a0:anchor-end a0:anchor="3">[3]</a0:anchor-end> 
字句模型の値は、指定された記法によって記述されたものと解釈します。
記法は通常通り<a0:anchor>記法宣言</a0:anchor>で宣言します。</p><p>記法はどんなものでも構いませんが、 ISO/IEC 10744:1997 A.2.2 
<a0:anchor-external a0:resScheme="URI" a0:resParameter="http://www.y12.doe.gov/sgml/wg8/docs/n1920/html/clause-A.2.2.html">http://www.y12.doe.gov/sgml/wg8/docs/n1920/html/clause-A.2.2.html</a0:anchor-external>
では、2種類の字句模型記法が示されています。</p><dl><dt><a0:anchor>HyLex</a0:anchor></dt><dd>ISO/IEC 10744 が規定する HyTime 字句模型記法
(HyLex)。
<a0:anchor>公開識別子</a0:anchor>は <code>ISO/IEC 10744:1997//NOTATION HyTime lexical model notation (HyLex)//EN</code>。</dd><dt><a0:anchor>POSIX正規表現</a0:anchor></dt><dd>POSIX で規定されている正規表現。
公開識別子は <code><a0:anchor>ISO/IEC 9945-2:1992//NOTATION POSIX Regular Expression Notation//EN</a0:anchor></code>。</dd></dl></section><section><h1>メモ</h1></section></body></html>