better (more restrained) error reporting

This commit is contained in:
dick
1989-10-30 16:19:35 +00:00
parent 2fb6605800
commit a817264e90
12 changed files with 46 additions and 112 deletions

View File

@@ -20,11 +20,13 @@ LLmessage(tk) {
error("end of file expected");
}
else if (tk) {
error("%s missing", symbol2str(tk));
error("%s missing before %s", symbol2str(tk), symbol2str(DOT));
insert_token(tk);
}
else
else {
error("%s deleted", symbol2str(DOT));
}
tk_nmb_at_last_syn_err = token_nmb;
}
insert_token(tk)