Testing a grammar converted from other parser generator tool I ended up commenting something inside a rule and discovered that lemon can't handle this particular comment:
====
prog ::= stmt /*=*/ .
prog ::= stmt2 /*/=*/.
stmt ::= .
stmt2 ::= .
====
Lemon output:
====
../lemon gram.y
gram.y:2: Illegal character on RHS of rule: "=".
====
But with this grammar (notice add a space here "/* /=*/"):
====
prog ::= stmt /*=*/ .
prog ::= stmt2 /* /=*/.
stmt ::= .
stmt2 ::= .
====
Lemon output:
====
../lemon gram.y
gram.y:4: This rule can not be reduced.
1 parsing conflicts.
====