public bool Recognize(char chr) { ActualState = ActualState.Check(chr, this); if (!ActualState.IsErrorState) { return(true); } return(false); }
public Tuple <bool, bool> Recognize(char chr) { ActualState = ActualState.Check(chr, this); var end = false; if (ActualState.Value == "End") { end = true; } if (!ActualState.IsErrorState) { return(new Tuple <bool, bool>(true, end)); } return(new Tuple <bool, bool>(false, end)); }