Skip to content

Commit

Permalink
Removed now-unnecessary /infrastructure/parsing-microsyntaxes/ page
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianholovaty committed Aug 17, 2023
1 parent c88eff4 commit 3c6e039
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 154 deletions.
11 changes: 0 additions & 11 deletions docgenerator/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -14939,17 +14939,6 @@
"order": 1
}
},
{
"model": "spec.staticpage",
"pk": 1,
"fields": {
"title": "Parsing microsyntaxes",
"url": "/infrastructure/parsing-microsyntaxes/",
"collection": 1,
"order": 1,
"content": "<p>Various parts of MNX use microsyntaxes, which require you to parse their contents. This parsing is <em>separate</em> from XML parsing.</p>\r\n\r\n<p>In this section, we provide some general information on how to parse MNX's microsyntaxes. Each microsyntax is described in detail on its appropriate <a href=\"../../mnx-reference/data-types/\">data type page</a>, but there are some common global terms and procedures shared among microsyntaxes; these commonalities are documented here.</p>\r\n\r\n<h2 id=\"ascii-digits\">ASCII digits</h2>\r\n\r\n<p>The ASCII digits are the characters in the range U+0030 DIGIT ZERO (0) to U+0039 DIGIT NINE (9).</p>\r\n\r\n<h2 id=\"space-chars\">Space characters</h2>\r\n\r\n<p>The space characters are:</p>\r\n\r\n<ul>\r\n<li>U+0020 SPACE</li>\r\n<li>U+0009 CHARACTER TABULATION (tab)</li>\r\n<li>U+000A LINE FEED (LF)</li>\r\n<li>U+000C FORM FEED (FF)</li>\r\n<li>U+000D CARRIAGE RETURN (CR)</li>\r\n</ul>\r\n\r\n<h2 id=\"uppercase-ascii-letters\">Uppercase ASCII letters</h2>\r\n\r\n<p>The uppercase ASCII letters are the characters in the range U+0041 LATIN CAPITAL LETTER A to U+005A LATIN CAPITAL LETTER Z.</p>\r\n\r\n<h2 id=\"collecting-a-sequence\">Collecting a sequence of characters</h2>\r\n\r\n<p>This spec uses the phrase \"collect a sequence of characters\" in some of its algorithm definitions. This is effectively a subroutine, and it means the following algorithm must be run:</p>\r\n\r\n<ol>\r\n<li>Let <i>characters</i> be the set of characters that can be collected.</li>\r\n<li>Let <i>input</i> and <i>position</i> be the same variables as those of the same name in the algorithm that invoked these steps.</li>\r\n<li>Let <i>result</i> be the empty string.</li>\r\n<li>While <i>position</i> doesn’t point past the end of <i>input</i> and the character at <i>position</i> is one of the <i>characters</i>, append that character to the end of <i>result</i> and advance <i>position</i> to the next character in <i>input</i>.</li>\r\n<li>Return <i>result</i>.</li>\r\n</ol>\r\n\r\n<h2 id=\"strictly-splitting\">Strictly splitting a string</h2>\r\n\r\n<p>This spec uses the phrase \"strictly splitting a string\" in some of its algorithm definitions. This is effectively a subroutine, and it means the following algorithm must be run:</p>\r\n\r\n<ol>\r\n<li>Let <i>input</i> be the string being parsed.</li>\r\n<li>Let <i>position</i> be a pointer into <i>input</i>, initially pointing at the start of the string.</li>\r\n<li>Let <i>tokens</i> be an ordered list of tokens, initially empty.</li>\r\n<li>While <i>position</i> is not past the end of <i>input</i>:\r\n <ol>\r\n <li><a href=\"#collecting-a-sequence\">Collect a sequence of characters</a> that are not the <i>delimiter</i> character.</li>\r\n <li>Append the string collected in the previous step to <i>tokens</i>.</li>\r\n <li>Advance <i>position</i> to the next character in <i>input</i>.</li>\r\n </ol>\r\n</li>\r\n<li>Return <i>tokens</i>.</li>\r\n</ol>\r\n\r\n<h2 id=\"stripping-leading-trailing-whitespace\">Stripping leading and trailing whitespace</h2>\r\n\r\n<p>Stripping leading and trailing whitespace from a string means removing all <a href=\"#space-chars\">space characters</a> that are at the start or end of the string.</p>\r\n\r\n<h2 id=\"rational-numbers\">Rational numbers</h2>\r\n\r\n<p>A string is a rational number if it is either an integer, or a pair of integers separated by a U+002F SLASH whose second element is nonzero.</p>\r\n\r\n<p>The rules for parsing rational numbers are given in the following algorithm. When invoked, the steps must be followed in the order given, aborting at the first step that returns a value. This algorithm will return a pair of integers, one for the numerator and one for the denominator which must be nonzero, or an error.</p>\r\n\r\n<ol>\r\n<li>Let <i>input</i> be the string being parsed.</li>\r\n<li>Let <i>position</i> be a pointer into <i>input</i>, initially pointing at the start of the string.</li>\r\n<li>Let <i>fraction</i> be an initially empty list of integers.</li>\r\n<li><a href=\"#collecting-a-sequence\">Collect a sequence of characters</a> that are <a href=\"#space-chars\">space characters</a>. These are skipped.</li>\r\n<li>While <i>position</i> is not past the end of <i>input</i>, and <i>fraction</i> contains fewer than two elements:\r\n <ol>\r\n <li><a href=\"#collecting-a-sequence\">Collect a sequence of characters</a> that are not <a href=\"#space-chars\">space characters</a>, <a href=\"#ascii-digits\">ASCII digits</a>, U+002D HYPHEN-MINUS or U+002F SLASH characters. This skips past leading garbage.</li>\r\n <li><a href=\"#collecting-a-sequence\">Collect a sequence of characters</a> that are not <a href=\"#space-chars\">space characters</a> or U+002F SLASH, and let <i>unparsed number</i> be the result.</li>\r\n <li>Let <i>number</i> be the result of parsing <i>unparsed number</i> using the <a href=\"https://www.w3.org/TR/html5/infrastructure.html#signed-integers\">rules for parsing signed integers</a>.</li>\r\n <li>If <i>number</i> is an error, set <i>number</i> to zero.</li>\r\n <li>Append <i>number</i> to <i>fraction</i>.</li>\r\n <li><a href=\"#collecting-a-sequence\">Collect a sequence of characters</a> that are <a href=\"#space-chars\">space characters</a> or U+002F SLASH.</li>\r\n </ol>\r\n</li>\r\n<li>If <i>fraction</i> has no elements, return zero.</li>\r\n<li>If <i>fraction</i> has only one element, append <code>1</code> to <i>fraction</i>.</li>\r\n<li>Return the first element of <i>fraction</i> as the numerator and the second element of <i>fraction</i> as the denominator.</li>\r\n</ol>"
}
},
{
"model": "spec.staticpage",
"pk": 2,
Expand Down
2 changes: 0 additions & 2 deletions docs/infrastructure/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ <h1>Infrastructure</h1>

<ul>

<li><a href="parsing-microsyntaxes/">Parsing microsyntaxes</a></li>

<li><a href="notational-concepts/">Notational concepts</a></li>

<li><a href="sequence-content/">Sequence content</a></li>
Expand Down
141 changes: 0 additions & 141 deletions docs/infrastructure/parsing-microsyntaxes/index.html

This file was deleted.

0 comments on commit 3c6e039

Please sign in to comment.