}
@Test
public void testLexer() {
String sql = "SELECT * FROM T WHERE F1 = ? ORDER BY F2";
Lexer lexer = new Lexer(sql);
System.out.println("--------------------------------------------");
for (;;) {
lexer.nextToken();
Token tok = lexer.token();
if (tok == Token.IDENTIFIER) {
System.out.println(tok.name() + "\t\t" + lexer.stringVal());
} else {
System.out.println(tok.name() + "\t\t\t" + tok.name);
}
if (tok == Token.EOF) {