コード例 #1
0
 /// <summary> Succeed with match length 1
 /// if the current character in the input is among the given characters.
 /// </summary>
 /// <param name="cs">the characters to compare with.
 /// </param>
 /// <returns> the Pattern object.
 /// </returns>
 public static Pattern Among(params char[] cs)
 {
     return(IsChar(CharPredicates.Among(cs)));
 }
コード例 #2
0
ファイル: Scanners.cs プロジェクト: leontius/Ragnarok
 static Scanner _among(char[] chars, string expected_name)
 {
     return(IsChar(CharPredicates.Among(chars), expected_name).Rename("among"));
 }