ocamlyacc: output verbose file before failing on --strict.

master
Nicolas Ojeda Bar 2016-07-05 11:42:21 +02:00
parent 17cc980be3
commit 318d9c9b41
2 changed files with 2 additions and 5 deletions

View File

@ -462,6 +462,7 @@ int main(int argc, char **argv)
lalr();
make_parser();
verbose();
if (eflag && SRtotal + RRtotal > 0) forbidden_conflicts();
output();
done(0);
/*NOTREACHED*/

View File

@ -47,11 +47,7 @@ void make_parser(void)
find_final_state();
remove_conflicts();
unused_rules();
if (SRtotal + RRtotal > 0) {
total_conflicts();
if (eflag)
forbidden_conflicts();
}
if (SRtotal + RRtotal > 0) total_conflicts();
defreds();
}