V3SOJREFOGAFFF2NOF27UZHHWE5KEQFXLVDFLTVVO53XNWX2OEXAC
\[ {
printf("open square\n");
open_square_count++;
}
\] {
printf("close square\n");
close_square_count++;
}
\( {
return round_open;
}
\) {
return round_close;
}
\* {
return multiply;
}
[0-9] {
yylval->integer = atoi(yytext);
return single_digit_integer;
}
[1-9][0-9]+ {
yylval->integer = atoi(yytext);
return multi_digit_integer;
}
{SPACE} {
return space;
}
[^()[:space:]]+ {
printf("%d:%d - %d:%d invalid: '%s'\n",
yylloc->first_line,
yylloc->first_column,
yylloc->last_line,
yylloc->last_column,
yytext);
return invalid;
}
\{ {
printf("open curly\n");
open_curly_count++;
}
\} {
printf("close curly\n");
close_curly_count++;
}
\( {
printf("open round\n");
open_round_count++;
}
\) {
printf("close round\n");
close_round_count++;
}
[A-Za-z_0-9]+ {
printf("token: '%s'\n", yytext);
}
\n {
return EOL;
}
. {
printf("invalid: '%s'\n", yytext);
}