Calculate LR transitions for rules