%{
#include <stdio.h>
%}
DIGIT [0-9]+
%%
{DIGIT
} { printf
("
Number "
); } "+" { printf("plus "); }
"-" { printf("minus "); }
"*" { printf("multiply "); }
"/" { printf("divide "); }
[ \t\n] { /* ignore whitespace */ }
. { printf("Unknown character\n"); }
%%
int main() {
yylex();
return 0;
}
int yywrap() {
return 1;
}
JXsKI2luY2x1ZGUgPHN0ZGlvLmg+CiV9CgpESUdJVCAgICAgICBbMC05XSsKCiUlCntESUdJVH0gICAgIHsgcHJpbnRmKCJOdW1iZXIgIik7IH0KIisiICAgICAgICAgeyBwcmludGYoInBsdXMgIik7IH0KIi0iICAgICAgICAgeyBwcmludGYoIm1pbnVzICIpOyB9CiIqIiAgICAgICAgIHsgcHJpbnRmKCJtdWx0aXBseSAiKTsgfQoiLyIgICAgICAgICB7IHByaW50ZigiZGl2aWRlICIpOyB9ClsgXHRcbl0gICAgIHsgLyogaWdub3JlIHdoaXRlc3BhY2UgKi8gfQouICAgICAgICAgICB7IHByaW50ZigiVW5rbm93biBjaGFyYWN0ZXJcbiIpOyB9CgolJQoKaW50IG1haW4oKSB7CiAgICB5eWxleCgpOwogICAgcmV0dXJuIDA7Cn0KCmludCB5eXdyYXAoKSB7CiAgICByZXR1cm4gMTsKfQo=