Exemple #1
0
 public static void Check(ref int lexemsIterator, CheckerFunc <int> Func, string success, string failure, Out.State logState)
 {
     Check(ref lexemsIterator, Func, success, failure, Checker.IncrementMode.NoIncrement, logState);
 }
Exemple #2
0
 public static void Check(ref int lexemsIterator, CheckerFunc <int> Func, string success, string failure, Checker.IncrementMode incrementValue, Out.State logState)
 {
     if (Func(ref lexemsIterator))
     {
         Out.Log(logState, success);
         lexemsIterator += (int)incrementValue;
     }
     else
     {
         throw new LexemException(SyntaxAnalyzerRecursiveDown.sharedAnalyzer.lexems[lexemsIterator].LineNumber,
                                  failure);
     }
 }
Exemple #3
0
 public static void Check(ref int lexemsIterator, int key, string success, string failure, Out.State logState)
 {
     Check(ref lexemsIterator, key, success, failure, IncrementMode.IncrementOnce, logState);
 }