]> matita.cs.unibo.it Git - helm.git/commitdiff
Lexical conventions documented.
authorClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Fri, 9 Jun 2006 14:33:16 +0000 (14:33 +0000)
committerClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Fri, 9 Jun 2006 14:33:16 +0000 (14:33 +0000)
matita/help/C/matita.xml
matita/help/C/sec_terms.xml

index 8934ffffdb12f876cdddedec2f3b331cb5f15505..7b3b3d30c00dc43c6151ea7cf1bc744d13d77bc1 100644 (file)
@@ -25,6 +25,8 @@
   <!-- Entities for BNF -->
   <!ENTITY id "<emphasis><link linkend='id'>id</link></emphasis>">
   <!ENTITY uri "<emphasis><link linkend='uri'>uri</link></emphasis>">
+  <!ENTITY char "<emphasis><link linkend='char'>char</link></emphasis>">
+  <!ENTITY uri-step "<emphasis><link linkend='uri-step'>uri-step</link></emphasis>">
   <!ENTITY nat "<emphasis><link linkend='nat'>nat</link></emphasis>">
   <!ENTITY term "<emphasis><link linkend='term'>term</link></emphasis>">
   <!ENTITY match_pattern "<emphasis><link linkend='match_pattern'>match_pattern</link></emphasis>">
index fbf8dd4ef9cb614c7dfb52eb4c2fa80e1ab210b2..f7991374cbb754a8ff0b0cfe3f7ae673c1946938 100644 (file)
@@ -13,8 +13,9 @@
        E.g.: [<emphasis role="bold">in</emphasis> &term;]</para></listitem>
     <listitem><para>Alternatives are put in square brakets and they are
        separated by vertical bars. E.g.: [<emphasis role="bold">&lt;</emphasis>|<emphasis role="bold">&gt;</emphasis>]</para></listitem>
-    <listitem><para>Repetition of sequences of elements are given by putting the
-    first sequence in square brackets, that are followed by three dots.
+    <listitem><para>Repetitions of a sequence of elements are given by putting the
+    sequence in square brackets, that are followed by three dots. The empty
+    sequence is a valid repetition.
     E.g.: [<emphasis role="bold">and</emphasis> &term;]…</para></listitem>
   </orderedlist>
   <sect1 id="terms_and_co">
@@ -29,7 +30,7 @@
        <row>
        <entry id="id">&id;</entry>
        <entry>::=</entry>
-       <entry><emphasis>〈〈&TODO;〉〉</emphasis></entry>
+        <entry><emphasis>〈〈any sequence of letters, underscores or valid <ulink url="http://www.w3.org/TR/2004/REC-xml-20040204/#NT-Digit">XML digits</ulink> prefixed by a latin letter ([a-zA-Z]) and post-fixed by a possible empty sequence of decorators ([?'`])〉〉</emphasis></entry>
        </row>
       </tbody>
      </tgroup>
        <row>
        <entry id="nat">&nat;</entry>
        <entry>::=</entry>
-       <entry><emphasis>〈〈&TODO;〉〉</emphasis></entry>
+       <entry><emphasis>〈〈any sequence of valid <ulink url="http://www.w3.org/TR/2004/REC-xml-20040204/#NT-Digit">XML digits</ulink></emphasis></entry>
+       </row>
+      </tbody>
+     </tgroup>
+    </table>
+    <table frame="all" rowsep="0" colsep="0">
+      <title>char</title>
+      <tgroup cols="4">
+      <tbody>
+       <row>
+       <entry id="char">&char;</entry>
+       <entry>::=</entry>
+       <entry>[<emphasis role="bold">a</emphasis>-<emphasis role="bold">zA</emphasis>-<emphasis role="bold">Z0</emphasis>-<emphasis role="bold">9_-</emphasis>]</entry>
+       </row>
+      </tbody>
+     </tgroup>
+    </table>
+    <table frame="all" rowsep="0" colsep="0">
+      <title>uri-step</title>
+      <tgroup cols="4">
+      <tbody>
+       <row>
+       <entry id="uri-step">&uri-step;</entry>
+       <entry>::=</entry>
+       <entry>&char;[&char;]…</entry>
        </row>
       </tbody>
      </tgroup>
@@ -53,7 +78,7 @@
        <row>
        <entry id="uri">&uri;</entry>
        <entry>::=</entry>
-       <entry><emphasis>〈〈&TODO;〉〉</emphasis></entry>
+       <entry>[<emphasis role="bold">cic:/</emphasis>|<emphasis role="bold">theory:/</emphasis>]&uri-step;[<emphasis role="bold">/</emphasis>&uri-step;]…<emphasis role="bold">.</emphasis>&id;[<emphasis role="bold">.</emphasis>&id;]…[<emphasis role="bold">#xpointer(</emphasis>&nat;<emphasis role="bold">/</emphasis>&nat;[<emphasis role="bold">/</emphasis>&nat;]…<emphasis role="bold">)</emphasis>]</entry>
        </row>
       </tbody>
      </tgroup>