[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re[2]: [PATCH 0/5] glr.cc: support syntax_error exceptions
From: |
Askar Safin |
Subject: |
Re[2]: [PATCH 0/5] glr.cc: support syntax_error exceptions |
Date: |
Sat, 05 Jan 2019 04:11:10 +0300 |
>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