method"><code>scan()</code></a>
is:
</p><pre>  public Symbol scan() throws java.lang.Exception {
    return getScanner().next_token();
  }
</pre>
<p>
The generated parser also contains a constructor which takes a
<code>Scanner</code> and calls <code>setScanner()</code> with it. In
most cases, then, the <code>init with</code> and <code>scan
with</code> directives may be omitted.  You can simply create the
parser with a reference to the desired scanner:
</p><pre>      /* create a parsing object */
      parse