/* comment.l */
%{
#include <stdio.h>
%}
%%
"//".* { printf("Single-line comment: %s\n", yytext); }
"/*"[^]*?"*/" { printf("Multi-line comment: %s\n", yytext); }
.|\n { /* Ignore other characters */ }
%%
int main() {
yylex();
return 0;
}
LyogY29tbWVudC5sICovCiV7CiNpbmNsdWRlIDxzdGRpby5oPgolfQoKJSUKIi8vIi4qICAgICAgICAgIHsgcHJpbnRmKCJTaW5nbGUtbGluZSBjb21tZW50OiAlc1xuIiwgeXl0ZXh0KTsgfQoiLyoiW15dKj8iKi8iICAgeyBwcmludGYoIk11bHRpLWxpbmUgY29tbWVudDogJXNcbiIsIHl5dGV4dCk7IH0KLnxcbiAgICAgICAgICAgIHsgLyogSWdub3JlIG90aGVyIGNoYXJhY3RlcnMgKi8gfQolJQoKaW50IG1haW4oKSB7CiAgICB5eWxleCgpOwogICAgcmV0dXJuIDA7Cn0K