 be done using <span class="emphasis"><em>Spirit.Lex</em></span>.
        </p>
<p>
          The template <code class="computeroutput"><span class="identifier">word_count_tokens</span></code>
          defines three different tokens: <code class="computeroutput"><span class="identifier">ID_WORD</span></code>,
          <code class="computeroutput"><span class="identifier">ID_EOL</span></code>, and <code class="computeroutput"><span class="identifier">ID_CHAR</span></code>, representing a word (anything
    