Example #1
0
        protected virtual ISet <T> GetAccreditedSetFromRangeSetRegexFATransition <TRegexFAState>(RangeSetRegexFATransition <T, TRegexFAState> transition)
            where TRegexFAState : IRegexFSMState <T, BasicRegexFATransition <T, TRegexFAState> >
        {
            if (transition == null)
            {
                throw new ArgumentNullException(nameof(transition));
            }

            return(transition.Set);
        }
Example #2
0
 /// <summary>
 /// 使用规范参数列表初始化 <see cref="_DebugInfo"/> 类的新实例。
 /// </summary>
 /// <param name="transition">基础正则表达式( Basic Regular Expression )构造的以 <see cref="RangeSet{T}"/> 划定接受输入范围的有限自动机的转换。</param>
 /// <param name="args">获取调试信息的参数列表。</param>
 public _DebugInfo(RangeSetRegexFATransition <T, TRegexFAState> transition, params object[] args) =>
 this.transition = transition ?? throw new ArgumentNullException(nameof(transition));
Example #3
0
        protected virtual RangeSetRegexFATransition <T, BasicRegexNFAState <T> > ActivateRegexNFATransitionFromDumplication(RangeSetRegexFATransition <T, BasicRegexNFAState <T> > transition)
        {
            if (transition == null)
            {
                throw new ArgumentNullException(nameof(transition));
            }

            return(new RangeSetRegexFATransition <T, BasicRegexNFAState <T> >(new RangeSet <T>(transition.Set, this.rangeInfo)));
        }