-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
While trying to improve the output of parsertl debug/dump to match the bison output I found that on the grammar attached bellow bison reports:
bison-nb -v lua-pluto.g.y
lua-pluto.g.y: warning: 64 shift/reduce conflicts [-Wconflicts-sr]
lua-pluto.g.y: note: rerun with option '-Wcounterexamples' to generate conflict counterexamples
And gram_grep report only 12:
./gram_grep -f lua-pluto.g test.sql
Warnings from config lua-pluto.g :
SHIFT (args -> . '(' ')') (args -> . '(' expr_comma_list ')')/REDUCE (stat -> funccall) conflict.
SHIFT (safe_name_access -> NAME . '?')/REDUCE (safe_name_access -> NAME) conflict.
SHIFT (funccall -> var . ':' NAME args)/REDUCE (exp -> var) conflict.
SHIFT (args -> . '(' ')') (args -> . '(' expr_comma_list ')')/REDUCE (exp -> var) conflict.
SHIFT (funccall -> funccall . ':' NAME args)/REDUCE (exp -> funccall) conflict.
SHIFT (args -> . '(' ')') (args -> . '(' expr_comma_list ')')/REDUCE (exp -> funccall) conflict.
SHIFT (safe_name_access -> NAME . '?')/REDUCE (safe_name_access -> NAME) conflict.
SHIFT (funccall -> funccall . ':' NAME args)/REDUCE (exp -> funccall PIPE funccall) conflict.
SHIFT (args -> . '(' ')') (args -> . '(' expr_comma_list ')')/REDUCE (exp -> funccall PIPE funccall) conflict.
SHIFT (funccall -> '(' exp ')' . ':' NAME args)/REDUCE (exp -> '(' exp ')') conflict.
SHIFT (args -> . '(' ')') (args -> . '(' expr_comma_list ')')/REDUCE (exp -> '(' exp ')') conflict.
SHIFT (var -> var '[' exp ']' . '?')/REDUCE (var -> var '[' exp ']') conflict.
Metadata
Metadata
Assignees
Labels
No labels