LR1 analysis takes a lot longer than LALR and will never find
more conflicts, only ever fewer.
So with to that when checking for conflicts.
Also report that the check is happening, and fix a typo.
Signed-off-by: NeilBrown <neil@brown.name>
tests:: oceani_test_suite
oceani_test_suite: oceani coverage_oceani
- @./parsergen --report --LR1 --tag Parser oceani.mdc | grep " - no conflicts" > /dev/null || \
- { echo "Grammar container conflicts, please review" ; exit 1; }
+ @echo -n Checking grammar ...
+ @./parsergen --report --LALR --tag Parser oceani.mdc | grep " - no conflicts" > /dev/null || \
+ { echo "Grammar contains conflicts, please review" ; exit 1; }
+ @echo ok
@rm -rf coverage; mkdir -p coverage
@cp *.gcno coverage
@for T in $(oceani_tests); do \