%{
#include <stdio.h>
int yywrap(void);
%}
%%
[0-9]+ { printf
("
Number: %s\n", yytext); } [a-zA-Z]+ { printf("Word: %s\n", yytext); }
.|\n { /* ignore other characters */ }
%%
int main() {
yylex();
return 0;
}
int yywrap() {
return 1;
}
JXsKI2luY2x1ZGUgPHN0ZGlvLmg+CmludCB5eXdyYXAodm9pZCk7CiV9CgolJQoKWzAtOV0rICAgICAgICB7IHByaW50ZigiTnVtYmVyOiAlc1xuIiwgeXl0ZXh0KTsgfQpbYS16QS1aXSsgICAgIHsgcHJpbnRmKCJXb3JkOiAlc1xuIiwgeXl0ZXh0KTsgfQoufFxuICAgICAgICAgIHsgLyogaWdub3JlIG90aGVyIGNoYXJhY3RlcnMgKi8gfQoKJSUKCmludCBtYWluKCkgewogICAgeXlsZXgoKTsKICAgIHJldHVybiAwOwp9CgppbnQgeXl3cmFwKCkgewogICAgcmV0dXJuIDE7Cn0K