]> ocean-lang.org Git - ocean/commitdiff
Parsergen: abort on error.
authorNeilBrown <neil@brown.name>
Sun, 12 Oct 2014 23:35:06 +0000 (10:35 +1100)
committerNeilBrown <neil@brown.name>
Sun, 12 Oct 2014 23:35:06 +0000 (10:35 +1100)
The error handling is currently completely broken and goes
into an infinite loop.
Just abort for now.

Signed-off-by: NeilBrown <neil@brown.name>
csrc/parsergen.mdc

index cfaa5c4124ac811ec67b974dac3ebb1e66dc1c71..6eb58bda6994d3547bf6b014e1774bab5e5c913c 100644 (file)
@@ -2815,6 +2815,7 @@ one symbol for each line where newlines are allowed.
                                break;
                        tos = &p.stack[p.tos-1];
                        tos->indents += indents;
+                       exit(1);
                }
                free(tk);
                pop(&p, p.tos, NULL, do_free);