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); }
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); } }
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); }