Esempio n. 1
0
 /**
  * Returns a parser that produces a defined character.
  *
  * @param missing The error if there is no character on the stream to produce a defined
  *     character with.
  * @param sat The error if the produced character is not a defined character.
  * @return A parser that produces a defined character.
  * @see Character#isDefined(char)
  */
 public static <E> Parser<Stream<Character>, Character, E> defined(
     final F0<E> missing, final F<Character, E> sat) {
   return StreamParser.satisfy(missing, sat, c -> Character.isDefined(c));
 }