* @param a The symbol
* @return the tie breaker
* @throws StateConflict
*/
protected Action getPreferred(LR1State st,Action a1,Action a2, String a) throws StateConflict {
Action shiftAction = (a1 instanceof ShiftAction) ? a1 : (a2 instanceof ShiftAction) ? a2 : null ;
Action otherAction = !(a1 instanceof ShiftAction) ? a1 : !(a2 instanceof ShiftAction) ? a2 : null ;
if (shiftAction == null || otherAction == null) {
throw new StateConflict(st,a,a1,a2) ;
}
int p1 = getPrecedence(a1, a) ;
int p2 = getPrecedence(a2, a) ;