<!DOCTYPE html>
<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <div class="moz-forward-container">
      <p>Dear DM members,</p>
      <p>I am implementing a STC-S parser (in Rust, obviously) from the 
        WD-STC-S-1.0-20130918 document:<br>
        <font face="monospace">> <a class="moz-txt-link-freetext"
href="https://www.ivoa.net/documents/STC-S/20130917/WD-STC-S-1.0-20130917.html"
            moz-do-not-send="true">https://www.ivoa.net/documents/STC-S/20130917/WD-STC-S-1.0-20130917.html</a></font></p>
      <p>Here is the trouble.</p>
      <p>The first 7.1B.1 example contains the following spectral
        sub-phrase:<br>
        <font face="monospace"><span class="T38">> SpectralInterval</span><span
            class="T39"> </span><span class="T38">GEOCENTER</span><span
            class="T39"> </span><span class="T38">4.95</span><span
            class="T39"> </span><span class="T38">5.0</span><span
            class="T39"> </span><span class="T38">unit</span><span
            class="T39"> </span><span class="T38">GHz</span><span
            class="T39"> </span><b><span class="T38">Size</span><span
              class="T39"> </span></b></font><span class="T38"><b><font
              face="monospace">0.05</font></b><br>
          <br>
          Which is fine with respect to 5.3:<br>
        </span><font face="monospace"><span class="T43">>
            SpectralInterval</span><span class="T44"> </span><span
            class="T43">[fillfactor</span><span class="T44"> </span><span
            class="T43"><</span><span class="T45">fill</span><span
            class="T43">>]</span><span class="T44"> </span><span
            class="T43">[<</span><span class="T45">refpos</span><span
            class="T43">>]</span><span class="T44"> </span></font><span
          class="T43"><br>
          <font face="monospace">> [<</font></span><font
          face="monospace"><span class="T45">lolimit</span><span
            class="T43">></span><span class="T44"> </span><span
            class="T43"><</span><span class="T45">hilimit</span><span
            class="T43">></span><span class="T44"> </span><span
            class="T43">...]</span><span class="T44"> </span><span
            class="T43"><br>
            > [Spectral</span><span class="T44"> </span><span
            class="T43"><</span><span class="T45">spec</span><span
            class="T43">>]</span><span class="T44"> </span><span
            class="T43">[unit</span><span class="T44"> </span><span
            class="T43"><</span><span class="T45">unit</span><span
            class="T43">>]</span><span class="T44"> </span><span
            class="T43">[Error</span><span class="T44"> </span><span
            class="T43"><</span><span class="T45">error</span><span
            class="T43">></span><span class="T44"> </span><span
            class="T43">[<</span><span class="T45">error</span><span
            class="T43">>]]</span><span class="T44"> </span><span
            class="T43"><br>
            > [Resolution</span><span class="T44"> </span><span
            class="T43"><</span><span class="T45">resln</span><span
            class="T43">></span><span class="T44"> </span><span
            class="T43">[<</span><span class="T45">resln</span><span
            class="T43">>]]</span><span class="T44"> </span><span
            class="T43">[<b>Size</b></span><b><span class="T44"> </span><span
              class="T43"><</span><span class="T45">size</span><span
              class="T43">></span><span class="T44"> </span><span
              class="T43">[<</span><span class="T45">size</span></b><span
            class="T43"><b>>]</b>]</span><span class="T44"> </span><span
            class="T43"><br>
            > [PixSize</span><span class="T44"> </span><span
            class="T43"><</span><span class="T45">pixsiz</span><span
            class="T43">></span><span class="T44"> </span><span
            class="T43">[<</span><span class="T45">pixsiz</span><span
            class="T43">>]]</span></font></p>
      <p class="P35"><span class="T43">But is not coherent with the 
          EBNF Representation in 6 (which do not contains 'Size', only
          'PixSize'):<br>
        </span><span class="T43"></span><span class="T38"><font
            face="monospace">> spectralInterval ::=
            "SpectralInterval" [ fillfactor ] [ refpos ]<br>
            >    { number } [ spectralSpec ] [ spectralUnit ] [ error
            ]<br>
            >    [ resolution ] [ pixelSize ]<br>
          </font></span></p>
      <p class="P35"><span class="T38">Is the grammar wrong? <br>
          Is there an 'official/original' STC-S parser that could be
          used as a reference?<br>
          Should an erratum be issued?<br>
        </span></p>
      <p class="P35"><span class="T38">Thank you in advance for your
          answers.</span></p>
      <p class="P35"><span class="T38">Kind regards</span></p>
      <p class="P35"><span class="T38"><br>
        </span></p>
      <p class="P35"><span class="T38">F.-X. Pineau<br>
        </span></p>
    </div>
  </body>
</html>