Esempio n. 1
0
 /// <summary>
 /// Parses the given symbol followed by any whitespace. Returns the parsed symbol.
 /// </summary>
 public static IParser <char> Symbol(char symbol)
 {
     return(Lexeme(Chars.Char(symbol)));
 }
Esempio n. 2
0
 public void Satisfy_PredicateNull_ThrowsException()
 {
     Chars.Satisfy(null);
 }
Esempio n. 3
0
 /// <summary>
 /// Parses the given symbol followed by any whitespace. Returns the parsed symbol.
 /// </summary>
 public static IParser <string> Symbol(string symbol)
 {
     return(Lexeme(Chars.String(symbol)));
 }