private BinaryOperator GetBinaryOperator(BnfTerm p) { if (p.Equals(_grammar.OR)) { return(new Or()); } if (p.Equals(_grammar.AND)) { return(new And()); } throw new InterpreterException("Unknown binary Operator"); }
public bool Equals(ParseStateTransition other) { return(Start.Equals(other.Start) && Trigger.Equals(other.Trigger) && End.Equals(other.End)); }