Flex is a tool for software developers used mostly with generating scanners as it recognizes lexical patterns in text.