Input of Lex is-
Input of Lex is set of regular expression.
Lex is a computer program that generates lexical analyzers. Lex is commonly used with the yacc parser generator. Lex reads an input stream specifying the lexical analyzer and outputs source code implementing the LEX in the C programming language.
Lex is commonly used with the yacc parser generator. Lex is the standard lexical analyzer generator on many UNIX systems, and an equivalent tool is specified as part of the POSIX standard.