%{
#include <stdio.h>
extern FILE *yyin;
%}
%%
"<"[^>]+> { printf("%s\n", yytext); } /* Print any text enclosed in < >
*/
. ;
%%
int yywrap() {
return 1;
}
int main
(int argc
, char
*argv
[]) { // Open tags
.txt in
read mode FILE
*file
= fopen
("tags
.txt"
, "r"
); if
(!file
) { perror("Error opening file");
return 1;
}
yyin = file;
yylex();
fclose(file);
return 0;
}
CiV7IAojaW5jbHVkZSA8c3RkaW8uaD4gCiAKZXh0ZXJuIEZJTEUgKnl5aW47IAolfSAKIAolJSAKIAoiPCJbXj5dKz4geyBwcmludGYoIiVzXG4iLCB5eXRleHQpOyB9ICAvKiBQcmludCBhbnkgdGV4dCBlbmNsb3NlZCBpbiA8ID4gCiovIAouIDsgICAgICAKIAolJSAKIAppbnQgeXl3cmFwKCkgeyAKICAgIHJldHVybiAxOyAgCn0gCiAKaW50IG1haW4oaW50IGFyZ2MsIGNoYXIgKmFyZ3ZbXSkgeyAgICAgLy8gT3BlbiB0YWdzLnR4dCBpbiByZWFkIG1vZGUgICAgIEZJTEUgKmZpbGUgPSBmb3BlbigidGFncy50eHQiLCAiciIpOyAgICAgaWYgKCFmaWxlKSB7IAogICAgICAgIHBlcnJvcigiRXJyb3Igb3BlbmluZyBmaWxlIik7IAogICAgICAgIHJldHVybiAxOyAKICAgIH0gCiAgICB5eWluID0gZmlsZTsgCiAKICAgIHl5bGV4KCk7IAogCiAgICBmY2xvc2UoZmlsZSk7IAogICAgcmV0dXJuIDA7IAp9IAogCgogCg==