%{
int count=0;
%}
%%
/* match identifier */
[A-Za-z]([A-Za-z]|[0-9])* {count++;}
%%
int yywrap()
{
return 1;
}
int main(void) {
yylex();
printf
("
number of identifiers
= %d\n", count); return 0;
}
CiV7IAogICAgaW50IGNvdW50PTA7IAolfSAKJSUgCiAgICAvKiBtYXRjaCBpZGVudGlmaWVyICovIApbQS1aYS16XShbQS1aYS16XXxbMC05XSkqIHtjb3VudCsrO30KJSUgCmludCB5eXdyYXAoKQp7CnJldHVybiAxOwp9CgppbnQgbWFpbih2b2lkKSB7IAogICAgeXlsZXgoKTsgCiAgICAgIAogICAgcHJpbnRmKCJudW1iZXIgb2YgaWRlbnRpZmllcnMgPSAlZFxuIiwgY291bnQpOyAKICAgIHJldHVybiAwOyAKfSA=