synhedionn
November 12th, 2009, 01:32 PM
Hi,
I need to say
l.l
main()
{"printf("Enter the string to analyse");
scanf("%s",st);
yylex()}
and
l.y
NUMBER op NUMBER { $$ =$1+$3; /*for instance*/}
main()
{yyparse()}
But the 2 main() will conflict
How to do?
I need to say
l.l
main()
{"printf("Enter the string to analyse");
scanf("%s",st);
yylex()}
and
l.y
NUMBER op NUMBER { $$ =$1+$3; /*for instance*/}
main()
{yyparse()}
But the 2 main() will conflict
How to do?