made acceptable for flex (no yyless() callable from other source file)

This commit is contained in:
ceriel 1991-01-11 14:36:37 +00:00
parent 6acdb3e358
commit 4b40bae467
2 changed files with 6 additions and 1 deletions

View file

@ -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);
}

View file

@ -58,3 +58,8 @@ offset return(OFFSET);
\n { linenum++; return(yytext[0]);}
. return(yytext[0]);
%%
back_token()
{
yyless(0);
}