What is a common tool used for generating lexical analyzers?
Lex is a common tool used to generate lexical analyzers, which are programs that perform lexical tokenization. Lex is traditionally used in conjunction with yacc (Yet Another Compiler Compiler) to build the front-end of compilers.