01: package vqwiki.lex;
02:
03: import org.apache.log4j.Logger;
04:
05: import java.io.IOException;
06: import java.io.StringReader;
07:
08: /**
09: * @author garethc
10: * Date: 21/03/2003
11: */
12: public class DebugLexer {
13: private static final Logger logger = Logger
14: .getLogger(DebugLexer.class);
15:
16: public DebugLexer() throws IOException {
17: String s = "�";
18: SearchLexer lexer = new SearchLexer(new StringReader(s));
19: try {
20: lexer.yylex();
21: } catch (Exception e) {
22: logger.error("error", e);
23: }
24: logger.info("done");
25: }
26:
27: public static void main(String[] args) throws IOException {
28: new DebugLexer();
29: }
30: }
|