On 08.12.25 02:50, G. Branden Robinson wrote:

<snip>

> Trying "make" again with the patch applied got a satisfactory outcome.

>

> make[2]: Entering directory '/.../src/GIT/groff/build'

>   YACC     src/preproc/pic/pic.cpp

> /.../src/GIT/groff/build/../src/preproc/pic/pic.ypp:93.1-7: warning: POSIX 
> Yacc does not support %expect [-Wyacc]

>    93 | %expect 2

>       | ^~~~~~~

> /.../src/GIT/groff/build/../src/preproc/pic/pic.ypp:1456.11-1461.17: warning: 
> rule useless in parser due to conflicts [-Wother]

>  1456 |         | ORDINAL LAST object_type relative_path

>       |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

> updating src/preproc/pic/pic.output

> GBR: creating ../src/preproc/pic

> updating src/preproc/pic/pic.hpp

>   CXX      src/preproc/pic/pic-pic.o

With the obscuring side-effect bug cleared, you're down to the grammar issue 
now. In the old days I was used to seeing "shift-shift" or "shift-reduce" as 
conflict description, helping to figure out how to tweak either the input or 
the grammar. Yacc has only single-token lookahead, my 71 yo brain reminds from 
my last venture a decade ago, so if the rules for ORDINAL and LAST are 
ambiguous, then you'll have such a conflict. Sight unseen, my WAG would be that 
the rules for ORDINAL and LAST might share tokens or subordinate rules with 
insufficient distinction?

The wording of the warning intimates not only such an ambiguity, but that it is 
so fundamental that the yacc maintainer is unimpressed. That might indicate 
it's not too hard to spot? (If we can remember this stuff.) Anyone like to 
email pic.ypp, if convenient? (It'd be quite a while before I could find round 
tuits to figure out git to grab the source and do any serious digging, but a 
look can't hurt, if someone hasn't fixed it already.¹)

Regards,

Erik

¹ A 1.2T mini electric excavator is arriving this week, for clearing 1.7 km of 
fenceline scrub, then I run a new 5 km fence with post-insulated wires for a 
solar powered 6-sector alarm. The design and PCB are done, but I now need to 
program the ATmega328P (same is in Arduino) to report via 433 MHz radio if the 
firewood pirates make another convoy raid into the 200 Ha of native forest. 
(Police not interested after the event.) And the tractor shed is only 1/8 
built, though I've cut half the poles from the forest and dragged them home. It 
all takes longer now.
  • ylwrap needs a &qu... G. Branden Robinson
    • Re: ylwrap ne... Bruno Haible via GNU roff typesetting system discussion
      • Re: ylwra... G. Branden Robinson
        • Re: y... Bruno Haible via GNU roff typesetting system discussion
          • R... G. Branden Robinson
            • ... Bruno Haible via GNU roff typesetting system discussion
              • ... G. Branden Robinson
    • Re: ylwrap ne... dvalin--- via GNU roff typesetting system discussion
    • Re: ylwrap ne... dvalin--- via GNU roff typesetting system discussion

Reply via email to