JFlex is a lexical analyzer generator (also known as scanner generator) for Java, written in Java.
A lexical analyzer generator takes as input a specification with a set of regular expressions and corresponding actions. It generates a program (a lexer) that reads input, matches the input against the regular expressions in the spec file, and runs the corresponding action if a regular expression matched.
Comments