
<p>To use the new code, your scanner should implement the
<code>java_cup.runtime.Scanner</code> interface, defined as:
</p>
<pre>
package java_cup.runtime;

public interface Scanner {
    public Symbol next_token() throws java.lang.Exception;
}
</pre>
<p>
In addition to the methods described in <a href="#parser">section
4</a>, the <code>java_cup.runtime.lr_parser</code> class has two new
accessor methods, <code>setScanner()</code> and <code>getScanner()</code>.
The default implementation of <a href="#scan_