Пример #1
0
 /// <summary>
 /// Scans the input and invokes the action for each nested parser that is considered.
 /// </summary>
 /// <param name="input">The input source.</param>
 /// <param name="inputStart">The starting offset within the input source.</param>
 /// <param name="prevWasMissing">True if the previous rule considered was required and determined to be missing.</param>
 /// <param name="action">The action to take each time the search considers a parser.</param>
 public SearchResult Search(Source <TInput> input, int inputStart, bool prevWasMissing, SearchAction <TInput> action)
 {
     return(SafeSearcher.SearchSafe(this, input, inputStart, prevWasMissing, action));
 }
 /// <summary>
 /// Scans the input and invokes the action for each nested parser that is considered.
 /// </summary>
 /// <param name="input">The input source.</param>
 /// <param name="inputStart">The starting offset within the input source.</param>
 /// <param name="prevWasMissing">True if the previous rule considered was required and determined to be missing.</param>
 /// <param name="beforeAction">The action to take just before the search considers a parser or any of its nested parsers.</param>
 /// <param name="afterAction">The action to take after a parser and all its nested parsers have been considered.</param>
 public SearchResult Search(Source <TInput> input, int inputStart, bool prevWasMissing, SearchAction <TInput> beforeAction, Action <Parser <TInput> > afterAction = null)
 {
     return(SafeSearcher.SearchSafe(this, input, inputStart, prevWasMissing, beforeAction, afterAction));
 }