Source/NFX/CodeAnalysis/PatternSearch.cs
/// <summary>
/// Makes finite state machine fed from IEnumerable(Token)
/// </summary>
/// <typeparam name="TToken">Concrete language-typed token</typeparam>
/// <param name="tokens">Token enumerable</param>
/// <param name="onlyPrimary">Sets filter to consider only primary language tokens (skip comments, directives, etc.)</param>
/// <param name="predicates">Predicates that supply machine state transition instructions</param>
/// <returns>Resulting token fetched by FSMI.Take instruction or null</returns>
Makes finite state machine fed from IEnumerable(Token)
Makes finite state machine fed from IEnumerable ( Token )
public static TToken LazyFSM<TToken>(this IEnumerable<TToken> tokens,
                                               bool onlyPrimary,
                                               params LazyFSMPredicate<TToken>[] predicates) where TToken : Token
       {
          LazyFSMState<TToken> state = null;
          return tokens.LazyFSM<TToken>(onlyPrimary, ref state, predicates);
       }
public static TToken LazyFSM < TToken > ( this IEnumerable < TToken > tokens , bool onlyPrimary , params LazyFSMPredicate < TToken > [ ] predicates ) where TToken : Token { LazyFSMState < TToken > state = null ; return tokens . LazyFSM < TToken > ( onlyPrimary , ref state , predicates ) ; }
Makes finite state machine fed from IEnumerable(Token)
Makes finite state machine fed from IEnumerable ( Token )
Resulting token fetched by FSMI.Take instruction or null
Resulting token fetched by FSMI . Take instruction or null
IEnumerable<TToken>
this
onlyPrimary
bool
Sets filter to consider only primary language tokens (skip comments, directives, etc.)
Sets filter to consider only primary language tokens ( skip comments directives etc . )
tokens
None
predicates
Predicates that supply machine state transition instructions
Predicates that supply machine state transition instructions
typeparam
Concrete language-typed token
Concrete language - typed token