Lexer written on Java