コード例 #1
0
 public bool Recognize(char chr)
 {
     ActualState = ActualState.Check(chr, this);
     if (!ActualState.IsErrorState)
     {
         return(true);
     }
     return(false);
 }
コード例 #2
0
        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));
        }