%{
#include <stdio.h>
%}
%%
BEGIN {
printf
("This
is executed at the beginning of the Lex program
.\n"
);}
[0-9]+ printf
("
Number: %s\n", yytext); [a-zA-Z]+ printf("Word: %s\n", yytext);
. printf("Other: %s\n", yytext);
%%
int main() {
yylex();
return 0;
}
CiV7CiNpbmNsdWRlIDxzdGRpby5oPgolfQolJQpCRUdJTiB7CiAgICBwcmludGYoIlRoaXMgaXMgZXhlY3V0ZWQgYXQgdGhlIGJlZ2lubmluZyBvZiB0aGUgTGV4IHByb2dyYW0uXG4iKTsKfQpbMC05XSsgICAgICBwcmludGYoIk51bWJlcjogJXNcbiIsIHl5dGV4dCk7ClthLXpBLVpdKyAgIHByaW50ZigiV29yZDogJXNcbiIsIHl5dGV4dCk7Ci4gICAgICAgICAgIHByaW50ZigiT3RoZXI6ICVzXG4iLCB5eXRleHQpOwolJQppbnQgbWFpbigpIHsKICAgIHl5bGV4KCk7CiAgICByZXR1cm4gMDsKfQ==