JFlex is a lexical analyzer generator for Java, see also http://jflex.de or https://github.com/jflex-de/jflex