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, CheckerFunc <int> Func, string success, string failure, Checker.IncrementMode incrementValue) { Check(ref lexemsIterator, Func, success, failure, incrementValue, Out.State.LogVerbose); }