%{
#include <stdio.h>
#include "y.tab.h"
extern int yylval;
%}
%%
[a-zA-Z] { yylval= *yytext[0]; return ID; }
[0-9] { yylval= *yytext[0]; return NUM;}
. return yytext[0];
\n return 0;
%%
i'm compiling this lex file along with the yacc file, when I hit the following command (cc lex.yy.c y.tab.h -ll)the error is throwing for the above lex code (error: invalid type argument of unary β*β (have βintβ)) Help me resolve this issue.