Пример #1
0
 public CstTransition(CstStateName startStateName, CstSymbol token, CstStateName endStateName)
 {
     StartStateName = startStateName;
     Token          = token;
     EndStateName   = endStateName;
     IsEpsilon      = false;
 }
Пример #2
0
 public CstDeclaration(CstIdentity identity, IList <CstStateName> states, CstStateName initialStateName, IList <CstStateName> finals, IList <CstTransition> trancitions)
 {
     Identity         = identity;
     States           = states == null ? null : new ReadOnlyCollection <CstStateName>(states);
     InitialStateName = initialStateName;
     Finals           = new ReadOnlyCollection <CstStateName>(finals);
     Trancitions      = new ReadOnlyCollection <CstTransition>(trancitions);
 }
Пример #3
0
 public CstTransition(CstStateName startStateName, CstStateName endStateName)
 {
     StartStateName = startStateName;
     EndStateName   = endStateName;
     IsEpsilon      = true;
 }
Пример #4
0
 protected bool Equals(CstStateName other)
 {
     return(Name == other.Name);
 }