Class LazyFSMState<TToken>
Represents a state object for Lazy Finate State Machine that enumerates tokes from IEnumerable(Token) and does not support a notion of index addressing
Inheritance
System.Object
    System.Collections.Hashtable
    LazyFSMState<TToken>
  Implements
System.Collections.IDictionary
    System.Collections.ICollection
    System.Collections.IEnumerable
    System.ICloneable
    System.Runtime.Serialization.IDeserializationCallback
    System.Runtime.Serialization.ISerializable
  Inherited Members
      System.Collections.Hashtable.Add(System.Object, System.Object)
    
    
      System.Collections.Hashtable.Clear()
    
    
      System.Collections.Hashtable.Clone()
    
    
      System.Collections.Hashtable.Contains(System.Object)
    
    
      System.Collections.Hashtable.ContainsKey(System.Object)
    
    
      System.Collections.Hashtable.ContainsValue(System.Object)
    
    
      System.Collections.Hashtable.CopyTo(System.Array, System.Int32)
    
    
      System.Collections.Hashtable.GetEnumerator()
    
    
      System.Collections.Hashtable.GetHash(System.Object)
    
    
      System.Collections.Hashtable.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
    
    
      System.Collections.Hashtable.KeyEquals(System.Object, System.Object)
    
    
      System.Collections.Hashtable.OnDeserialization(System.Object)
    
    
      System.Collections.Hashtable.Remove(System.Object)
    
    
      System.Collections.Hashtable.Synchronized(System.Collections.Hashtable)
    
    
      System.Collections.Hashtable.System.Collections.IEnumerable.GetEnumerator()
    
    
      System.Collections.Hashtable.comparer
    
    
      System.Collections.Hashtable.Count
    
    
      System.Collections.Hashtable.EqualityComparer
    
    
      System.Collections.Hashtable.hcp
    
    
      System.Collections.Hashtable.IsFixedSize
    
    
      System.Collections.Hashtable.IsReadOnly
    
    
      System.Collections.Hashtable.IsSynchronized
    
    
      System.Collections.Hashtable.Item[System.Object]
    
    
      System.Collections.Hashtable.Keys
    
    
      System.Collections.Hashtable.SyncRoot
    
    
      System.Collections.Hashtable.Values
    
    
      System.Object.Equals(System.Object)
    
    
      System.Object.Equals(System.Object, System.Object)
    
    
      System.Object.GetHashCode()
    
    
      System.Object.GetType()
    
    
      System.Object.MemberwiseClone()
    
    
      System.Object.ReferenceEquals(System.Object, System.Object)
    
    
      System.Object.ToString()
    
  Namespace: NFX.CodeAnalysis
Assembly: NFX.dll
Syntax
public class LazyFSMState<TToken> : Hashtable, IDictionary, ICollection, IEnumerable, ICloneable, IDeserializationCallback, ISerializable where TToken : Token
  Type Parameters
| Name | Description | 
|---|---|
| TToken | 
Properties
CurrentToken
Returns token that machine is at now
Declaration
public Token CurrentToken { get; }
  Property Value
| Type | Description | 
|---|---|
| Token | 
CurrentTokenIndex
Returns an index for token that machine is on now
Declaration
public int CurrentTokenIndex { get; }
  Property Value
| Type | Description | 
|---|---|
| System.Int32 | 
OnlyPrimary
Returns true when state machine only considers language-primary tokens
Declaration
public bool OnlyPrimary { get; }
  Property Value
| Type | Description | 
|---|---|
| System.Boolean | 
PatternTokenLength
Returns how many tokens have been covered by the current match pattern, i.e. if we loop until first int literal, this property will count how many tokens have been looped + int literal itself
Declaration
public int PatternTokenLength { get; }
  Property Value
| Type | Description | 
|---|---|
| System.Int32 | 
Tokens
Returns token enumerable that analysis is performed on
Declaration
public IEnumerable<TToken> Tokens { get; }
  Property Value
| Type | Description | 
|---|---|
| System.Collections.Generic.IEnumerable<TToken> | 
Methods
Get<TCast>(Object)
Gets typecasted value for a key
Declaration
public TCast Get<TCast>(object key)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Object | key | 
Returns
| Type | Description | 
|---|---|
| TCast | 
Type Parameters
| Name | Description | 
|---|---|
| TCast | 
Implements
      System.Collections.IDictionary
  
  
      System.Collections.ICollection
  
  
      System.Collections.IEnumerable
  
  
      System.ICloneable
  
  
      System.Runtime.Serialization.IDeserializationCallback
  
  
      System.Runtime.Serialization.ISerializable