I want to send duplicate string to my bison file.
In my flex file I use it like this
"<" {return strdup(tOPEN);}
">" {return strdup(tCLOSE);}
Is this right things to do? Or should I use it like below the code.
"<" { yyval. sval = strdup(yytext); return tOPEN;}