Try to fix or use Epsilon differently. I suspect that VariableDeclList is decreasing, and now he does not know whether StmtList needs to reduce StmtList first before executing Stmt or not decreasing it and using VariableDecl. I know that VariableDeclList is not a problem, because you do it in both rules, however now StmtList can be reduced before knowing which rule to follow, which is a problem (because not all rules reduce it in the same place / ok).
state 74 38 StmtBlock: '{' VariableDeclList . StmtList '}' 39 VariableDeclList: VariableDeclList . VariableDecl StmtList: StmtList Stmt | Epsilon
user34537
source share