flex
Lexical analyzer generator. tldr-pages
On Linux
Linux
Lexical analyzer generator. Given the specification for a lexical analyzer, generates C code implementing it.
Generate an analyzer from a Lex file, storing it to the file lex.yy.c
flex analyzer.lIdentifyWrite analyzer to stdout
flex --stdout analyzer.lIdentifySpecify the output file
flex analyzer.l --outfile analyzer.cIdentifyGenerate a batch scanner instead of an interactive scanner
flex --batch analyzer.lIdentifyCompile a C file generated by Lex
cc path/to/lex.yy.c -o executableIdentify