%{
#include <stdio.h>
#include <string.h>
%}
%%
if { printf("Keyword: if\n"); }
else { printf("Keyword: else\n"); }
while { printf("Keyword: while\n"); }
/* Add more keywords here */
[ \t\n] ; /* Skip whitespace and newline characters */
. ; /* Ignore any other characters */
%%
int main() {
yylex();
return 0;
}
JXsKI2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdHJpbmcuaD4KJX0KCiUlCmlmICAgICAgeyBwcmludGYoIktleXdvcmQ6IGlmXG4iKTsgfQplbHNlICAgIHsgcHJpbnRmKCJLZXl3b3JkOiBlbHNlXG4iKTsgfQp3aGlsZSAgIHsgcHJpbnRmKCJLZXl3b3JkOiB3aGlsZVxuIik7IH0KLyogQWRkIG1vcmUga2V5d29yZHMgaGVyZSAqLwoKWyBcdFxuXSAgICA7IC8qIFNraXAgd2hpdGVzcGFjZSBhbmQgbmV3bGluZSBjaGFyYWN0ZXJzICovCi4gICAgICAgICAgOyAvKiBJZ25vcmUgYW55IG90aGVyIGNoYXJhY3RlcnMgKi8KCiUlCgppbnQgbWFpbigpIHsKICAgIHl5bGV4KCk7CiAgICByZXR1cm4gMDsKfQo=