private static int MatchInteger(string text) { return(LexerExtensions.MatchAllChars(text, c => LexerExtensions.MatchRange(c, '0', '9'))); }
private static int MatchSpaces(string text) { return(LexerExtensions.MatchAllChars(text, char.IsWhiteSpace)); }
private static int MatchIdentifier(string text) { return(LexerExtensions.MatchAllChars(text, c => char.IsLetter(c) || c == '_', c => char.IsLetterOrDigit(c) || c == '_')); }