Skip to content

Commit 318d9c9

Browse files
committed
ocamlyacc: output verbose file before failing on --strict.
1 parent 17cc980 commit 318d9c9

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

yacc/main.c

+1
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,7 @@ int main(int argc, char **argv)
462462
lalr();
463463
make_parser();
464464
verbose();
465+
if (eflag && SRtotal + RRtotal > 0) forbidden_conflicts();
465466
output();
466467
done(0);
467468
/*NOTREACHED*/

yacc/mkpar.c

+1-5
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,7 @@ void make_parser(void)
4747
find_final_state();
4848
remove_conflicts();
4949
unused_rules();
50-
if (SRtotal + RRtotal > 0) {
51-
total_conflicts();
52-
if (eflag)
53-
forbidden_conflicts();
54-
}
50+
if (SRtotal + RRtotal > 0) total_conflicts();
5551
defreds();
5652
}
5753

0 commit comments

Comments
 (0)