Skip to content

Commit

Permalink
Merge pull request #242 from ndw/action-2024-03-19-b
Browse files Browse the repository at this point in the history
Draft prose about end-of-line handling
  • Loading branch information
ndw committed Apr 2, 2024
2 parents 345e594 + 72e4590 commit 9ddf09b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/ixml-specification.html
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,16 @@ <h2 id="parsing">Parsing</h2>
href="#cyk">CYK</a>], [<a href="#glr">GLR</a>], and [<a href="#gll">GLL</a>];
see also [<a href="#grune">Grune</a>].</p>

<p>Invisible XML processors normalize line endings when they read grammar and
input files. They apply the same rules as [<a href="#xml">XML</a>]: every
occurrence of the two character sequence <code>#d #a</code>, and any
<code>#d</code> not immediately followed by a <code>#a</code>, are translated
into a single <code>#a</code> in the input. This assures that the single
character <code>#a</code> can always be used to match an end of line,
irrespective of the conventions of the system where the files were created. It
follows that the iXML exclusion <code>~[#a]*</code> will always match all of the
characters to the end of a line.</p>

<p>If an input encoded in UTF-8 begins with a BOM, the BOM
<span class="conform">should</span> be ignored.</p>

Expand Down

0 comments on commit 9ddf09b

Please sign in to comment.