From 25d7f048bbeb8611842b67eb011e7af87b6b4dc0 Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Mon, 19 Feb 2018 16:40:06 +1100 Subject: [PATCH] parsergen: enable error handling. The error handling code currently aborts early because it was badly broken. After recent changes it works well enough for experimenting, so remove the exit(1) and other unnecessary code, and let's experiment. Signed-off-by: NeilBrown --- csrc/parsergen.mdc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/csrc/parsergen.mdc b/csrc/parsergen.mdc index aacc598..bc1a604 100644 --- a/csrc/parsergen.mdc +++ b/csrc/parsergen.mdc @@ -2888,11 +2888,7 @@ checks if a given token is in any of these look-ahead sets. // FIXME update since_indent here } } - if (p.tos == 0 && tk->num == TK_eof) - break; - tos = &p.stack[p.tos-1]; tos->indents += indents; - exit(1); } free(tk); pop(&p, p.tos, NULL, do_free); -- 2.43.0