>Good catch, thanks!  I believe this patch is much better than my previous 
>failed attempt.
It seems it is buggy again. :)
I checked out 20ad776a1ed2d95495b1706492e3ccf5441f9f0f from 
https://github.com/akimd/bison . Then I built that attached example from 
https://lists.gnu.org/archive/html/bison-patches/2019-01/msg00000.html . And 
typed this:

    echo 2 + 2 % | ./a.out && echo Accepted || echo Rejected

And got this:

    Invalid character: %
    4
    Rejected

But with %skeleton "lalr1.cc" I got this:

    Invalid character: %
    Rejected

So, it seems current solution is buggy, but I am not sure. Because I don't know 
how GLR parsers supposed to work. Maybe current behavior is correct.
==
Askar Safin
http://vk.com/safinaskar

Reply via email to