made acceptable for flex (no yyless() callable from other source file)
This commit is contained in:
parent
6acdb3e358
commit
4b40bae467
|
@ -487,7 +487,7 @@ LLmessage(insertedtok)
|
|||
fprintf(stderr,"parser: syntax error on line %d: ",linenum);
|
||||
if(insertedtok) {
|
||||
fprintf(stderr,"Inserted token %d\n",insertedtok);
|
||||
yyless(0);
|
||||
back_token();
|
||||
}
|
||||
else fprintf(stderr,"Deleted token %d\n",LLsymb);
|
||||
}
|
||||
|
|
|
@ -58,3 +58,8 @@ offset return(OFFSET);
|
|||
\n { linenum++; return(yytext[0]);}
|
||||
. return(yytext[0]);
|
||||
%%
|
||||
|
||||
back_token()
|
||||
{
|
||||
yyless(0);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue