|yacc warning about useless rule email@example.com (Jens Kallup) (2012-02-13)|
|From:||Jens Kallup <firstname.lastname@example.org>|
|Date:||Mon, 13 Feb 2012 22:22:56 +0100|
|Keywords:||yacc, question, comment|
|Posted-Date:||13 Feb 2012 19:41:18 EST|
I get the following Warning:
conflicts: 7 shift/reduce
pcode.y:64.12-66.5: warning: rule useless in parser due to conflicts:
$@1: /* empty */
is this a error?
why is it display?
give it a glue?
[Yes, it's an error. It's telling you that your grammar can't be
turned into a LALR parser, and the parser it did generate will never
reduce that rule. Solution: find the conflicts and fix them. -John]
Return to the
Search the comp.compilers archives again.