]> ocean-lang.org Git - ocean/commitdiff
parsergen: enable error handling.
authorNeilBrown <neil@brown.name>
Mon, 19 Feb 2018 05:40:06 +0000 (16:40 +1100)
committerNeilBrown <neil@brown.name>
Mon, 19 Feb 2018 05:40:06 +0000 (16:40 +1100)
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 <neil@brown.name>
csrc/parsergen.mdc

index aacc59810be2e13aad50d1494171609797dcd71d..bc1a604d3a8d696bb666d4262c735740b3648d92 100644 (file)
@@ -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);