ter use.
This comes in handy, if e.g. a pretty printer or syntax highlighter is applied.</p>

<p>Given that the <code>Lexer</code> class implements CUP's <code>Scanner</code>
interface, we can buffer its output with the <code>ScannerBuffer</code> and access
the tokenstream with <code>getBuffered()</code>, once the parsing is finished:</p>
<pre>
Scanner scanner = new Lexer();
ScannerBuffer buffer = new ScannerBuffer(lexer);
Parser p = new Parser(buffer,new ComplexSymbolFactory);
p.parse();
System.out.println