P
Profetas
Hi.
I was wondering how can I access the yacc functions?
because when use a normal yacc function such as
qstring {
yylval.string = strdup(yytext+1);
if(yylval.string[yyleng-2] !='"')
warning("Undeterminated Character strig",(char
*)0);
else
yylval.string[yyleng-2]='\0';
return qstring;}
I won't be able to compile it gives me
example.l: In function `yylex':
example.l:14: `yylval' undeclared (first use in this function)
example.l:14: (Each undeclared identifier is reported only once
example.l:14: for each function it appears in.)
as if the yacc library weren't been used.
How do I include then?
Thanks Profetas
I was wondering how can I access the yacc functions?
because when use a normal yacc function such as
qstring {
yylval.string = strdup(yytext+1);
if(yylval.string[yyleng-2] !='"')
warning("Undeterminated Character strig",(char
*)0);
else
yylval.string[yyleng-2]='\0';
return qstring;}
I won't be able to compile it gives me
example.l: In function `yylex':
example.l:14: `yylval' undeclared (first use in this function)
example.l:14: (Each undeclared identifier is reported only once
example.l:14: for each function it appears in.)
as if the yacc library weren't been used.
How do I include then?
Thanks Profetas