On 4/25/17, Kelvin Sherlock wrote:
>
> I believe the issue is line 4164 which should be … = LEMON_TRUE. Currently,
> when i=0, all rules will erroneously be optimized out.
>
> 4157/* Mark rules that are actually used for reduce actions after all
> 4158**
The test case can be simplified to:
bug.lemon:
---
%include {
#include
#include
#include
#include "bug.h"
}
%code {
int main(void) {
void *pParser;
pParser = ParseAlloc(malloc);
if (!pParser) {
printf("out of memory\n");
exit(1);
If you use the version of lemon.c and lempar.c in the Fossil repository for
SQLite as of 2017-04-16 20:54:23 UTC, take the following Lemon parser, compile
it, and run it, it fails with
Assertion failed: (yyruleno!=116), function yy_reduce, file
mate_grammar.c, line 2165.
(It's a
3 matches
Mail list logo