%{
#include <stdio.h>
%}
%%
[0-9]+ { printf
("
Number: %s\n", yytext); }
#[^\n]* { printf("Comment: %s\n", yytext); }
\"[^\"]*\" { printf("Text String: %s\n", yytext); }
[A-Za-z_][A-Za-z0-9_]* { printf("Identifier/Command: %s\n", yytext); }
[ \t\n,]+ { /* ignore whitespace, commas, tabs, and newlines */ }
. { printf("Unknown Token: %s\n", yytext); }
%%
int main(void)
{
printf("Enter your input sequence:\n");
yylex();
return 0;
}
JXsKI2luY2x1ZGUgPHN0ZGlvLmg+CiV9CgolJQoKWzAtOV0rICAgICAgICAgICAgICAgIHsgcHJpbnRmKCJOdW1iZXI6ICVzXG4iLCB5eXRleHQpOyB9CgojW15cbl0qICAgICAgICAgICAgICAgeyBwcmludGYoIkNvbW1lbnQ6ICVzXG4iLCB5eXRleHQpOyB9CgpcIlteXCJdKlwiICAgICAgICAgICAgeyBwcmludGYoIlRleHQgU3RyaW5nOiAlc1xuIiwgeXl0ZXh0KTsgfQoKW0EtWmEtel9dW0EtWmEtejAtOV9dKiB7IHByaW50ZigiSWRlbnRpZmllci9Db21tYW5kOiAlc1xuIiwgeXl0ZXh0KTsgfQoKWyBcdFxuLF0rICAgICAgICAgICAgIHsgLyogaWdub3JlIHdoaXRlc3BhY2UsIGNvbW1hcywgdGFicywgYW5kIG5ld2xpbmVzICovIH0KCi4gICAgICAgICAgICAgICAgICAgICB7IHByaW50ZigiVW5rbm93biBUb2tlbjogJXNcbiIsIHl5dGV4dCk7IH0KCiUlCgppbnQgbWFpbih2b2lkKQp7CiAgICBwcmludGYoIkVudGVyIHlvdXIgaW5wdXQgc2VxdWVuY2U6XG4iKTsKICAgIHl5bGV4KCk7CiAgICByZXR1cm4gMDsKfQo=