Several bug fixes

This commit is contained in:
ceriel
1986-11-05 14:33:00 +00:00
parent 97e027db33
commit 9291d87dab
26 changed files with 401 additions and 164 deletions

View File

@@ -21,15 +21,16 @@ extern int err_occurred;
LLmessage(tk)
int tk;
{
if (tk) {
/* if (tk != 0), it represents the token to be inserted.
otherwize, the current token is deleted
if (tk > 0) {
/* if (tk > 0), it represents the token to be inserted.
*/
error("%s missing", symbol2str(tk));
insert_token(tk);
}
else
error("%s deleted", symbol2str(dot.tk_symb));
else if (tk < 0) {
error("garbage at end of program");
}
else error("%s deleted", symbol2str(dot.tk_symb));
}
insert_token(tk)