The rules section of a lex program contains the actual specification of the analyzer algorithm.