l_id           ::= ID
opt_semi	   ::= SEMI | empty

</tt></pre>
<hr><p></p><p>

</p><h3><a name="appendixb"></a>Appendix B. A Very Simple Example Scanner</h3>
<hr><br>
<pre><tt>// Simple Example Scanner Class

import java_cup.runtime.*;
import sym;

public class scanner {
  /* single lookahead character */
  protected static int next_char;
  // since cup v11 we use SymbolFactories rather than Symbols
  private SymbolFactory sf = new DefaultSymbolFactory();

  /* advance input by one character */
  protected