flex: flex (fast lexical analyzer generator) flex: flex: flex is a tool for generating programs that perform pattern matching flex: on text. flex is a rewrite of the AT&T Unix lex tool (the two flex: implementations do not share any code, though), with some extensions flex: (and incompatibilities). flex: flex: flex: flex: flex: