예제 #1
0
 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");
 }
예제 #2
0
 public bool Equals(ParseStateTransition other)
 {
     return(Start.Equals(other.Start) && Trigger.Equals(other.Trigger) && End.Equals(other.End));
 }