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 92229ee6bf
commit 69450aeb77
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);
}