flex
Lexical analyser generator. Based on lex. Given the specification for a lexical analyser, generates C code implementing it.
lex
flex {{analyser.l}}
flex --outfile {{analyser.c}} {{analyser.l}}
cc {{path/to/lex.yy.c}} --output {{executable}}