%option noyywrap %% "2;0;30moi".+\n ; "Copyright 1991".+\n ; "Space used".+\n ; "lexing (selma'o CMENE): ".+\n {printf("cmene "); yyless(24);}; "lexing (selma'o BRIVLA): ".+\n {printf("brivla "); yyless(25);}; "lexing (selma'o EOT): EOT"\n {printf("end_of_lex_list\n");}; "lexing".+\n ; "{" ; "(" ; "[" ; "}" ; ")" ; "]" ; "<" ; ">" ; "'" write(yyout,"h"); [A-Z] write(yyout,tolower(yytext[0])); %% char *lowerstring(char *x) {int i; for(i=0;x[i]!='\0';i++) x[i]=tolower(x[i]); return x;}