Syntax-notation.xhtml 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  2. <!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:pls="http://www.w3.org/2005/01/pronunciation-lexicon" xmlns:ssml="http://www.w3.org/2001/10/synthesis" xmlns:svg="http://www.w3.org/2000/svg">
  3. <head>
  4. <title>Notation</title>
  5. <link rel="stylesheet" type="text/css" href="docbook-epub.css"/>
  6. <link rel="stylesheet" type="text/css" href="kawa.css"/>
  7. <script src="kawa-ebook.js" type="text/javascript"/>
  8. <meta name="generator" content="DocBook XSL-NS Stylesheets V1.79.1"/>
  9. <link rel="prev" href="Syntax.xhtml" title="Syntax"/>
  10. <link rel="next" href="Lexical-and-datum-syntax.xhtml" title="Lexical and datum syntax"/>
  11. </head>
  12. <body>
  13. <header/>
  14. <section class="sect1" title="Notation" epub:type="subchapter" id="Syntax-notation">
  15. <div class="titlepage">
  16. <div>
  17. <div>
  18. <h2 class="title" style="clear: both">Notation</h2>
  19. </div>
  20. </div>
  21. </div>
  22. <p>The formal syntax for Kawa Scheme is written in an extended <abbr class="acronym">BNF</abbr>.
  23. Non–terminals are written <em class="replaceable"><code>like-this</code></em>. Case is insignificant
  24. for non–terminal names.
  25. Literal text (terminals) are written <code class="literal"><span class="bold"><strong>like this</strong></span></code>.
  26. </p>
  27. <p>All spaces in the grammar are for legibility.
  28. </p>
  29. <p>The following extensions to <abbr class="acronym">BNF</abbr> are used to make the
  30. description more concise: <em class="replaceable"><code>thing</code></em><sup>*</sup> or <em class="replaceable"><code>thing</code></em><code class="literal">...</code>
  31. both mean zero or more occurrences of <em class="replaceable"><code>thing</code></em>,
  32. and <em class="replaceable"><code>thing</code></em><sup>+</sup> means at least one <em class="replaceable"><code>thing</code></em>.
  33. </p>
  34. <p>Some non-terminal names refer to the Unicode scalar values of the same
  35. name: <em class="replaceable"><code>character-tabulation</code></em> (U+0009), <em class="replaceable"><code>linefeed</code></em> (U+000A),
  36. <em class="replaceable"><code>carriage-return</code></em> (U+000D), <em class="replaceable"><code>line-tabulation</code></em> (U+000B),
  37. <em class="replaceable"><code>form-feed</code></em> (U+000C), <em class="replaceable"><code>space</code></em> (U+0020), <em class="replaceable"><code>next-line</code></em>
  38. (U+0085), <em class="replaceable"><code>line-separator</code></em> (U+2028), and <em class="replaceable"><code>paragraph-separator</code></em>
  39. (U+2029).
  40. </p>
  41. </section>
  42. <footer>
  43. <div class="navfooter">
  44. <p>
  45. Up: <a accesskey="u" href="Syntax.xhtml">Syntax</a></p>
  46. <p>
  47. Next: <a accesskey="n" href="Lexical-and-datum-syntax.xhtml">Lexical and datum syntax</a></p>
  48. </div>
  49. </footer>
  50. </body>
  51. </html>