private int calcRhsSize(Production production){
  int result=production.getRHSSizeWithoutEpsilon();
  if (production.getLHS() instanceof AuxiliaryLHS4SemanticShiftAction) {
    final AuxiliaryLHS4SemanticShiftAction auxAction=(AuxiliaryLHS4SemanticShiftAction)production.getLHS();
    result+=auxAction.numPrecedingSymbolsNotEpsilon;
  }
  return result;
}

private int calcRhsSize ( Production production ) { int result = production . getRHSSizeWithoutEpsilon ( ) ; if ( production . getLHS ( ) instanceof AuxiliaryLHS4SemanticShiftAction ) { final AuxiliaryLHS4SemanticShiftAction auxAction = ( AuxiliaryLHS4SemanticShiftAction ) production . getLHS ( ) ; result += auxAction . numPrecedingSymbolsNotEpsilon ; } return result ; }
todo relevant for ll - parser ? ? ?
