An Acronym for fast lexical analyzer generator.
Flex is used to generate C programs that perform pattern matching on text. It produces a single lex.yy.c file which defines a single yylex() function, which can compiled and linked with libfl to produce an executable that analyzes its input for occurrences of regular expressions. Whenever it finds one, it executes the corresponding C code.
It is usually used in conjunction with Bison. The Flex code then passes the tokens it finds to the yacc(1) style parser generated by Bison.
%{
%}
MATCHBOB "bob"|"BOB"
%%
/* pattern action */
{MATCHBOB} {printf("bob has been found!);}
%%
/*user supplied functions */
2 pages link to Flex:
lib/plugin/WlugLicense.php:99: Warning: Invalid argument supplied for foreach()
lib/plugin/WlugLicense.php:111: Warning: in_array() [<a href='function.in-array'>function.in-array</a>]: Wrong datatype for second argument