Package fj.parser

Class Parser.CharsParser

  • Enclosing class:
    Parser<I,​A,​E>

    public static final class Parser.CharsParser
    extends java.lang.Object
    Parsers that accept Stream<Character> input.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private CharsParser()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <E> Parser<Stream<java.lang.Character>,​java.lang.Character,​E> alpha​(E missing, F<java.lang.Character,​E> sat)
      Returns a parser that produces an alpha character.
      static <E> Parser<Stream<java.lang.Character>,​java.lang.Character,​E> alpha​(F0<E> missing, F<java.lang.Character,​E> sat)
      Returns a parser that produces an alpha character.
      static <E> Parser<Stream<java.lang.Character>,​java.lang.Character,​E> alphaNum​(E missing, F<java.lang.Character,​E> sat)
      Returns a parser that produces an alpha-numeric character.
      static <E> Parser<Stream<java.lang.Character>,​java.lang.Character,​E> alphaNum​(F0<E> missing, F<java.lang.Character,​E> sat)
      Returns a parser that produces an alpha-numeric character.
      static <E> Parser<Stream<java.lang.Character>,​java.lang.Character,​E> character​(E e)
      Returns a parser that produces a character if one is available or fails with the given error.
      static <E> Parser<Stream<java.lang.Character>,​java.lang.Character,​E> character​(E missing, F<java.lang.Character,​E> sat, char c)
      Returns a parser that produces the given character or fails otherwise.
      static <E> Parser<Stream<java.lang.Character>,​java.lang.Character,​E> character​(F0<E> e)
      Returns a parser that produces a character if one is available or fails with the given error.
      static <E> Parser<Stream<java.lang.Character>,​java.lang.Character,​E> character​(F0<E> missing, F<java.lang.Character,​E> sat, char c)
      Returns a parser that produces the given character or fails otherwise.
      static <E> Parser<Stream<java.lang.Character>,​Stream<java.lang.Character>,​E> characters​(E missing, int n)
      Returns a parser that produces the given number of characters, or fails with the given error.
      static <E> Parser<Stream<java.lang.Character>,​Stream<java.lang.Character>,​E> characters​(E missing, F<java.lang.Character,​E> sat, Stream<java.lang.Character> cs)
      Returns a parser that produces the given stream of characters or fails otherwise.
      static <E> Parser<Stream<java.lang.Character>,​Stream<java.lang.Character>,​E> characters​(F0<E> missing, int n)
      Returns a parser that produces the given number of characters, or fails with the given error.
      static <E> Parser<Stream<java.lang.Character>,​Stream<java.lang.Character>,​E> characters​(F0<E> missing, F<java.lang.Character,​E> sat, Stream<java.lang.Character> cs)
      Returns a parser that produces the given stream of characters or fails otherwise.
      static <E> Parser<Stream<java.lang.Character>,​java.lang.Character,​E> defined​(E missing, F<java.lang.Character,​E> sat)
      Returns a parser that produces a defined character.
      static <E> Parser<Stream<java.lang.Character>,​java.lang.Character,​E> defined​(F0<E> missing, F<java.lang.Character,​E> sat)
      Returns a parser that produces a defined character.
      static <E> Parser<Stream<java.lang.Character>,​Digit,​E> digit​(E missing, F<java.lang.Character,​E> sat)
      Returns a parser that produces a digit (0 to 9).
      static <E> Parser<Stream<java.lang.Character>,​Digit,​E> digit​(F0<E> missing, F<java.lang.Character,​E> sat)
      Returns a parser that produces a digit (0 to 9).
      static <E> Parser<Stream<java.lang.Character>,​java.lang.Character,​E> highSurrogate​(E missing, F<java.lang.Character,​E> sat)
      Returns a parser that produces a high-surrogate character.
      static <E> Parser<Stream<java.lang.Character>,​java.lang.Character,​E> highSurrogate​(F0<E> missing, F<java.lang.Character,​E> sat)
      Returns a parser that produces a high-surrogate character.
      static <E> Parser<Stream<java.lang.Character>,​java.lang.Character,​E> identifierIgnorable​(E missing, F<java.lang.Character,​E> sat)
      Returns a parser that produces an identifier-ignorable character.
      static <E> Parser<Stream<java.lang.Character>,​java.lang.Character,​E> identifierIgnorable​(F0<E> missing, F<java.lang.Character,​E> sat)
      Returns a parser that produces an identifier-ignorable character.
      static <E> Parser<Stream<java.lang.Character>,​java.lang.Character,​E> isoControl​(E missing, F<java.lang.Character,​E> sat)
      Returns a parser that produces an ISO control character.
      static <E> Parser<Stream<java.lang.Character>,​java.lang.Character,​E> isoControl​(F0<E> missing, F<java.lang.Character,​E> sat)
      Returns a parser that produces an ISO control character.
      static <E> Parser<Stream<java.lang.Character>,​java.lang.Character,​E> javaIdentifierPart​(E missing, F<java.lang.Character,​E> sat)
      Returns a parser that produces a Java identifier part character.
      static <E> Parser<Stream<java.lang.Character>,​java.lang.Character,​E> javaIdentifierPart​(F0<E> missing, F<java.lang.Character,​E> sat)
      Returns a parser that produces a Java identifier part character.
      static <E> Parser<Stream<java.lang.Character>,​java.lang.Character,​E> javaIdentifierStart​(E missing, F<java.lang.Character,​E> sat)
      Returns a parser that produces a Java identifier start character.
      static <E> Parser<Stream<java.lang.Character>,​java.lang.Character,​E> javaIdentifierStart​(F0<E> missing, F<java.lang.Character,​E> sat)
      Returns a parser that produces a Java identifier start character.
      static <E> Parser<Stream<java.lang.Character>,​java.lang.Character,​E> lower​(E missing, F<java.lang.Character,​E> sat)
      Returns a parser that produces a lower-case character.
      static <E> Parser<Stream<java.lang.Character>,​java.lang.Character,​E> lower​(F0<E> missing, F<java.lang.Character,​E> sat)
      Returns a parser that produces a lower-case character.
      static <E> Parser<Stream<java.lang.Character>,​java.lang.Character,​E> lowSurrogate​(E missing, F<java.lang.Character,​E> sat)
      Returns a parser that produces a low-surrogate character.
      static <E> Parser<Stream<java.lang.Character>,​java.lang.Character,​E> lowSurrogate​(F0<E> missing, F<java.lang.Character,​E> sat)
      Returns a parser that produces a low-surrogate character.
      static <E> Parser<Stream<java.lang.Character>,​java.lang.Character,​E> mirrored​(E missing, F<java.lang.Character,​E> sat)
      Returns a parser that produces a mirrored character.
      static <E> Parser<Stream<java.lang.Character>,​java.lang.Character,​E> mirrored​(F0<E> missing, F<java.lang.Character,​E> sat)
      Returns a parser that produces a mirrored character.
      static <E> Parser<Stream<java.lang.Character>,​java.lang.Character,​E> space​(E missing, F<java.lang.Character,​E> sat)
      Returns a parser that produces a space character.
      static <E> Parser<Stream<java.lang.Character>,​java.lang.Character,​E> space​(F0<E> missing, F<java.lang.Character,​E> sat)
      Returns a parser that produces a space character.
      static <E> Parser<Stream<java.lang.Character>,​java.lang.String,​E> string​(E missing, F<java.lang.Character,​E> sat, java.lang.String s)
      Returns a parser that produces the given string or fails otherwise.
      static <E> Parser<Stream<java.lang.Character>,​java.lang.String,​E> string​(F0<E> missing, F<java.lang.Character,​E> sat, java.lang.String s)
      Returns a parser that produces the given string or fails otherwise.
      static <E> Parser<Stream<java.lang.Character>,​java.lang.Character,​E> titleCase​(E missing, F<java.lang.Character,​E> sat)
      Returns a parser that produces a title-case character.
      static <E> Parser<Stream<java.lang.Character>,​java.lang.Character,​E> titleCase​(F0<E> missing, F<java.lang.Character,​E> sat)
      Returns a parser that produces a title-case character.
      static <E> Parser<Stream<java.lang.Character>,​java.lang.Character,​E> unicodeIdentiferPart​(E missing, F<java.lang.Character,​E> sat)
      Returns a parser that produces a unicode identifier part character.
      static <E> Parser<Stream<java.lang.Character>,​java.lang.Character,​E> unicodeIdentiferPart​(F0<E> missing, F<java.lang.Character,​E> sat)
      Returns a parser that produces a unicode identifier part character.
      static <E> Parser<Stream<java.lang.Character>,​java.lang.Character,​E> unicodeIdentiferStart​(E missing, F<java.lang.Character,​E> sat)
      Returns a parser that produces a unicode identifier start character.
      static <E> Parser<Stream<java.lang.Character>,​java.lang.Character,​E> unicodeIdentiferStart​(F0<E> missing, F<java.lang.Character,​E> sat)
      Returns a parser that produces a unicode identifier start character.
      static <E> Parser<Stream<java.lang.Character>,​java.lang.Character,​E> upper​(E missing, F<java.lang.Character,​E> sat)
      Returns a parser that produces a upper-case character.
      static <E> Parser<Stream<java.lang.Character>,​java.lang.Character,​E> upper​(F0<E> missing, F<java.lang.Character,​E> sat)
      Returns a parser that produces a upper-case character.
      static <E> Parser<Stream<java.lang.Character>,​java.lang.Character,​E> whitespace​(E missing, F<java.lang.Character,​E> sat)
      Returns a parser that produces a white-space character.
      static <E> Parser<Stream<java.lang.Character>,​java.lang.Character,​E> whitespace​(F0<E> missing, F<java.lang.Character,​E> sat)
      Returns a parser that produces a white-space character.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CharsParser

        private CharsParser()
    • Method Detail

      • character

        public static <E> Parser<Stream<java.lang.Character>,​java.lang.Character,​E> character​(F0<E> e)
        Returns a parser that produces a character if one is available or fails with the given error.
        Parameters:
        e - The error to fail with if a character is unavailable.
        Returns:
        A parser that produces a character if one is available or fails with the given error.
      • character

        public static <E> Parser<Stream<java.lang.Character>,​java.lang.Character,​E> character​(E e)
        Returns a parser that produces a character if one is available or fails with the given error.
        Parameters:
        e - The error to fail with if a character is unavailable.
        Returns:
        A parser that produces a character if one is available or fails with the given error.
      • character

        public static <E> Parser<Stream<java.lang.Character>,​java.lang.Character,​E> character​(F0<E> missing,
                                                                                                          F<java.lang.Character,​E> sat,
                                                                                                          char c)
        Returns a parser that produces the given character or fails otherwise.
        Parameters:
        missing - The error if no character is available.
        sat - The error if the produced character is not the one given.
        c - The character to produce in the parser.
        Returns:
        A parser that produces the given character or fails otherwise.
      • character

        public static <E> Parser<Stream<java.lang.Character>,​java.lang.Character,​E> character​(E missing,
                                                                                                          F<java.lang.Character,​E> sat,
                                                                                                          char c)
        Returns a parser that produces the given character or fails otherwise.
        Parameters:
        missing - The error if no character is available.
        sat - The error if the produced character is not the one given.
        c - The character to produce in the parser.
        Returns:
        A parser that produces the given character or fails otherwise.
      • characters

        public static <E> Parser<Stream<java.lang.Character>,​Stream<java.lang.Character>,​E> characters​(F0<E> missing,
                                                                                                                   int n)
        Returns a parser that produces the given number of characters, or fails with the given error.
        Parameters:
        missing - The error if the given number of characters is unavailable.
        n - The number of characters to produce in the parse result.
        Returns:
        A parser that produces the given number of characters, or fails with the given error.
      • characters

        public static <E> Parser<Stream<java.lang.Character>,​Stream<java.lang.Character>,​E> characters​(E missing,
                                                                                                                   int n)
        Returns a parser that produces the given number of characters, or fails with the given error.
        Parameters:
        missing - The error if the given number of characters is unavailable.
        n - The number of characters to produce in the parse result.
        Returns:
        A parser that produces the given number of characters, or fails with the given error.
      • characters

        public static <E> Parser<Stream<java.lang.Character>,​Stream<java.lang.Character>,​E> characters​(F0<E> missing,
                                                                                                                   F<java.lang.Character,​E> sat,
                                                                                                                   Stream<java.lang.Character> cs)
        Returns a parser that produces the given stream of characters or fails otherwise.
        Parameters:
        missing - The error if the producing stream could not supply more characters.
        sat - The error if a character was produced that is not the given stream of characters.
        cs - The stream of characters to produce.
        Returns:
        A parser that produces the given stream of characters or fails otherwise.
      • characters

        public static <E> Parser<Stream<java.lang.Character>,​Stream<java.lang.Character>,​E> characters​(E missing,
                                                                                                                   F<java.lang.Character,​E> sat,
                                                                                                                   Stream<java.lang.Character> cs)
        Returns a parser that produces the given stream of characters or fails otherwise.
        Parameters:
        missing - The error if the producing stream could not supply more characters.
        sat - The error if a character was produced that is not the given stream of characters.
        cs - The stream of characters to produce.
        Returns:
        A parser that produces the given stream of characters or fails otherwise.
      • string

        public static <E> Parser<Stream<java.lang.Character>,​java.lang.String,​E> string​(F0<E> missing,
                                                                                                    F<java.lang.Character,​E> sat,
                                                                                                    java.lang.String s)
        Returns a parser that produces the given string or fails otherwise.
        Parameters:
        missing - The error if the producing stream could not supply more characters.
        sat - The error if a character was produced that is not the given string.
        s - The string to produce.
        Returns:
        A parser that produces the given string or fails otherwise.
      • string

        public static <E> Parser<Stream<java.lang.Character>,​java.lang.String,​E> string​(E missing,
                                                                                                    F<java.lang.Character,​E> sat,
                                                                                                    java.lang.String s)
        Returns a parser that produces the given string or fails otherwise.
        Parameters:
        missing - The error if the producing stream could not supply more characters.
        sat - The error if a character was produced that is not the given string.
        s - The string to produce.
        Returns:
        A parser that produces the given string or fails otherwise.
      • digit

        public static <E> Parser<Stream<java.lang.Character>,​Digit,​E> digit​(F0<E> missing,
                                                                                        F<java.lang.Character,​E> sat)
        Returns a parser that produces a digit (0 to 9).
        Parameters:
        missing - The error if there is no character on the stream to produce a digit with.
        sat - The error if the produced character is not a digit.
        Returns:
        A parser that produces a digit (0 to 9).
      • digit

        public static <E> Parser<Stream<java.lang.Character>,​Digit,​E> digit​(E missing,
                                                                                        F<java.lang.Character,​E> sat)
        Returns a parser that produces a digit (0 to 9).
        Parameters:
        missing - The error if there is no character on the stream to produce a digit with.
        sat - The error if the produced character is not a digit.
        Returns:
        A parser that produces a digit (0 to 9).
      • lower

        public static <E> Parser<Stream<java.lang.Character>,​java.lang.Character,​E> lower​(F0<E> missing,
                                                                                                      F<java.lang.Character,​E> sat)
        Returns a parser that produces a lower-case character.
        Parameters:
        missing - The error if there is no character on the stream to produce a lower-case character with.
        sat - The error if the produced character is not a lower-case character.
        Returns:
        A parser that produces a lower-case character.
        See Also:
        Character.isLowerCase(char)
      • lower

        public static <E> Parser<Stream<java.lang.Character>,​java.lang.Character,​E> lower​(E missing,
                                                                                                      F<java.lang.Character,​E> sat)
        Returns a parser that produces a lower-case character.
        Parameters:
        missing - The error if there is no character on the stream to produce a lower-case character with.
        sat - The error if the produced character is not a lower-case character.
        Returns:
        A parser that produces a lower-case character.
        See Also:
        Character.isLowerCase(char)
      • upper

        public static <E> Parser<Stream<java.lang.Character>,​java.lang.Character,​E> upper​(F0<E> missing,
                                                                                                      F<java.lang.Character,​E> sat)
        Returns a parser that produces a upper-case character.
        Parameters:
        missing - The error if there is no character on the stream to produce a upper-case character with.
        sat - The error if the produced character is not a upper-case character.
        Returns:
        A parser that produces a upper-case character.
        See Also:
        Character.isUpperCase(char)
      • upper

        public static <E> Parser<Stream<java.lang.Character>,​java.lang.Character,​E> upper​(E missing,
                                                                                                      F<java.lang.Character,​E> sat)
        Returns a parser that produces a upper-case character.
        Parameters:
        missing - The error if there is no character on the stream to produce a upper-case character with.
        sat - The error if the produced character is not a upper-case character.
        Returns:
        A parser that produces a upper-case character.
        See Also:
        Character.isUpperCase(char)
      • defined

        public static <E> Parser<Stream<java.lang.Character>,​java.lang.Character,​E> defined​(F0<E> missing,
                                                                                                        F<java.lang.Character,​E> sat)
        Returns a parser that produces a defined character.
        Parameters:
        missing - The error if there is no character on the stream to produce a defined character with.
        sat - The error if the produced character is not a defined character.
        Returns:
        A parser that produces a defined character.
        See Also:
        Character.isDefined(char)
      • defined

        public static <E> Parser<Stream<java.lang.Character>,​java.lang.Character,​E> defined​(E missing,
                                                                                                        F<java.lang.Character,​E> sat)
        Returns a parser that produces a defined character.
        Parameters:
        missing - The error if there is no character on the stream to produce a defined character with.
        sat - The error if the produced character is not a defined character.
        Returns:
        A parser that produces a defined character.
        See Also:
        Character.isDefined(char)
      • highSurrogate

        public static <E> Parser<Stream<java.lang.Character>,​java.lang.Character,​E> highSurrogate​(F0<E> missing,
                                                                                                              F<java.lang.Character,​E> sat)
        Returns a parser that produces a high-surrogate character.
        Parameters:
        missing - The error if there is no character on the stream to produce a high-surrogate character with.
        sat - The error if the produced character is not a high-surrogate character.
        Returns:
        A parser that produces a high-surrogate character.
        See Also:
        Character.isHighSurrogate(char)
      • highSurrogate

        public static <E> Parser<Stream<java.lang.Character>,​java.lang.Character,​E> highSurrogate​(E missing,
                                                                                                              F<java.lang.Character,​E> sat)
        Returns a parser that produces a high-surrogate character.
        Parameters:
        missing - The error if there is no character on the stream to produce a high-surrogate character with.
        sat - The error if the produced character is not a high-surrogate character.
        Returns:
        A parser that produces a high-surrogate character.
        See Also:
        Character.isHighSurrogate(char)
      • identifierIgnorable

        public static <E> Parser<Stream<java.lang.Character>,​java.lang.Character,​E> identifierIgnorable​(F0<E> missing,
                                                                                                                    F<java.lang.Character,​E> sat)
        Returns a parser that produces an identifier-ignorable character.
        Parameters:
        missing - The error if there is no character on the stream to produce an identifier-ignorable character with.
        sat - The error if the produced character is not an identifier-ignorable character.
        Returns:
        A parser that produces an identifier-ignorable character.
        See Also:
        Character.isIdentifierIgnorable(char)
      • identifierIgnorable

        public static <E> Parser<Stream<java.lang.Character>,​java.lang.Character,​E> identifierIgnorable​(E missing,
                                                                                                                    F<java.lang.Character,​E> sat)
        Returns a parser that produces an identifier-ignorable character.
        Parameters:
        missing - The error if there is no character on the stream to produce an identifier-ignorable character with.
        sat - The error if the produced character is not an identifier-ignorable character.
        Returns:
        A parser that produces an identifier-ignorable character.
        See Also:
        Character.isIdentifierIgnorable(char)
      • isoControl

        public static <E> Parser<Stream<java.lang.Character>,​java.lang.Character,​E> isoControl​(F0<E> missing,
                                                                                                           F<java.lang.Character,​E> sat)
        Returns a parser that produces an ISO control character.
        Parameters:
        missing - The error if there is no character on the stream to produce an ISO control character with.
        sat - The error if the produced character is not an ISO control character.
        Returns:
        A parser that produces an ISO control character.
        See Also:
        Character.isISOControl(char)
      • isoControl

        public static <E> Parser<Stream<java.lang.Character>,​java.lang.Character,​E> isoControl​(E missing,
                                                                                                           F<java.lang.Character,​E> sat)
        Returns a parser that produces an ISO control character.
        Parameters:
        missing - The error if there is no character on the stream to produce an ISO control character with.
        sat - The error if the produced character is not an ISO control character.
        Returns:
        A parser that produces an ISO control character.
        See Also:
        Character.isISOControl(char)
      • javaIdentifierPart

        public static <E> Parser<Stream<java.lang.Character>,​java.lang.Character,​E> javaIdentifierPart​(F0<E> missing,
                                                                                                                   F<java.lang.Character,​E> sat)
        Returns a parser that produces a Java identifier part character.
        Parameters:
        missing - The error if there is no character on the stream to produce a Java identifier part character with.
        sat - The error if the produced character is not a Java identifier part character.
        Returns:
        A parser that produces a Java identifier part character.
        See Also:
        Character.isJavaIdentifierPart(char)
      • javaIdentifierPart

        public static <E> Parser<Stream<java.lang.Character>,​java.lang.Character,​E> javaIdentifierPart​(E missing,
                                                                                                                   F<java.lang.Character,​E> sat)
        Returns a parser that produces a Java identifier part character.
        Parameters:
        missing - The error if there is no character on the stream to produce a Java identifier part character with.
        sat - The error if the produced character is not a Java identifier part character.
        Returns:
        A parser that produces a Java identifier part character.
        See Also:
        Character.isJavaIdentifierPart(char)
      • javaIdentifierStart

        public static <E> Parser<Stream<java.lang.Character>,​java.lang.Character,​E> javaIdentifierStart​(F0<E> missing,
                                                                                                                    F<java.lang.Character,​E> sat)
        Returns a parser that produces a Java identifier start character.
        Parameters:
        missing - The error if there is no character on the stream to produce a Java identifier start character with.
        sat - The error if the produced character is not a Java identifier start character.
        Returns:
        A parser that produces a Java identifier start character.
        See Also:
        Character.isJavaIdentifierStart(char)
      • javaIdentifierStart

        public static <E> Parser<Stream<java.lang.Character>,​java.lang.Character,​E> javaIdentifierStart​(E missing,
                                                                                                                    F<java.lang.Character,​E> sat)
        Returns a parser that produces a Java identifier start character.
        Parameters:
        missing - The error if there is no character on the stream to produce a Java identifier start character with.
        sat - The error if the produced character is not a Java identifier start character.
        Returns:
        A parser that produces a Java identifier start character.
        See Also:
        Character.isJavaIdentifierStart(char)
      • alpha

        public static <E> Parser<Stream<java.lang.Character>,​java.lang.Character,​E> alpha​(F0<E> missing,
                                                                                                      F<java.lang.Character,​E> sat)
        Returns a parser that produces an alpha character.
        Parameters:
        missing - The error if there is no character on the stream to produce an alpha character with.
        sat - The error if the produced character is not an alpha character.
        Returns:
        A parser that produces an alpha character.
        See Also:
        Character.isLetter(char)
      • alpha

        public static <E> Parser<Stream<java.lang.Character>,​java.lang.Character,​E> alpha​(E missing,
                                                                                                      F<java.lang.Character,​E> sat)
        Returns a parser that produces an alpha character.
        Parameters:
        missing - The error if there is no character on the stream to produce an alpha character with.
        sat - The error if the produced character is not an alpha character.
        Returns:
        A parser that produces an alpha character.
        See Also:
        Character.isLetter(char)
      • alphaNum

        public static <E> Parser<Stream<java.lang.Character>,​java.lang.Character,​E> alphaNum​(F0<E> missing,
                                                                                                         F<java.lang.Character,​E> sat)
        Returns a parser that produces an alpha-numeric character.
        Parameters:
        missing - The error if there is no character on the stream to produce an alpha-numeric character with.
        sat - The error if the produced character is not an alpha-numeric character.
        Returns:
        A parser that produces an alpha-numeric character.
        See Also:
        Character.isLetterOrDigit(char)
      • alphaNum

        public static <E> Parser<Stream<java.lang.Character>,​java.lang.Character,​E> alphaNum​(E missing,
                                                                                                         F<java.lang.Character,​E> sat)
        Returns a parser that produces an alpha-numeric character.
        Parameters:
        missing - The error if there is no character on the stream to produce an alpha-numeric character with.
        sat - The error if the produced character is not an alpha-numeric character.
        Returns:
        A parser that produces an alpha-numeric character.
        See Also:
        Character.isLetterOrDigit(char)
      • lowSurrogate

        public static <E> Parser<Stream<java.lang.Character>,​java.lang.Character,​E> lowSurrogate​(F0<E> missing,
                                                                                                             F<java.lang.Character,​E> sat)
        Returns a parser that produces a low-surrogate character.
        Parameters:
        missing - The error if there is no character on the stream to produce a low-surrogate character with.
        sat - The error if the produced character is not a low-surrogate character.
        Returns:
        A parser that produces a low-surrogate character.
        See Also:
        Character.isLowSurrogate(char)
      • lowSurrogate

        public static <E> Parser<Stream<java.lang.Character>,​java.lang.Character,​E> lowSurrogate​(E missing,
                                                                                                             F<java.lang.Character,​E> sat)
        Returns a parser that produces a low-surrogate character.
        Parameters:
        missing - The error if there is no character on the stream to produce a low-surrogate character with.
        sat - The error if the produced character is not a low-surrogate character.
        Returns:
        A parser that produces a low-surrogate character.
        See Also:
        Character.isLowSurrogate(char)
      • mirrored

        public static <E> Parser<Stream<java.lang.Character>,​java.lang.Character,​E> mirrored​(F0<E> missing,
                                                                                                         F<java.lang.Character,​E> sat)
        Returns a parser that produces a mirrored character.
        Parameters:
        missing - The error if there is no character on the stream to produce a mirrored character with.
        sat - The error if the produced character is not a mirrored character.
        Returns:
        A parser that produces a mirrored character.
        See Also:
        Character.isMirrored(char)
      • mirrored

        public static <E> Parser<Stream<java.lang.Character>,​java.lang.Character,​E> mirrored​(E missing,
                                                                                                         F<java.lang.Character,​E> sat)
        Returns a parser that produces a mirrored character.
        Parameters:
        missing - The error if there is no character on the stream to produce a mirrored character with.
        sat - The error if the produced character is not a mirrored character.
        Returns:
        A parser that produces a mirrored character.
        See Also:
        Character.isMirrored(char)
      • space

        public static <E> Parser<Stream<java.lang.Character>,​java.lang.Character,​E> space​(F0<E> missing,
                                                                                                      F<java.lang.Character,​E> sat)
        Returns a parser that produces a space character.
        Parameters:
        missing - The error if there is no character on the stream to produce a space character with.
        sat - The error if the produced character is not a space character.
        Returns:
        A parser that produces a space character.
        See Also:
        Character.isSpace(char)
      • space

        public static <E> Parser<Stream<java.lang.Character>,​java.lang.Character,​E> space​(E missing,
                                                                                                      F<java.lang.Character,​E> sat)
        Returns a parser that produces a space character.
        Parameters:
        missing - The error if there is no character on the stream to produce a space character with.
        sat - The error if the produced character is not a space character.
        Returns:
        A parser that produces a space character.
        See Also:
        Character.isSpace(char)
      • titleCase

        public static <E> Parser<Stream<java.lang.Character>,​java.lang.Character,​E> titleCase​(F0<E> missing,
                                                                                                          F<java.lang.Character,​E> sat)
        Returns a parser that produces a title-case character.
        Parameters:
        missing - The error if there is no character on the stream to produce a title-case character with.
        sat - The error if the produced character is not a title-case character.
        Returns:
        A parser that produces a title-case character.
        See Also:
        Character.isTitleCase(char)
      • titleCase

        public static <E> Parser<Stream<java.lang.Character>,​java.lang.Character,​E> titleCase​(E missing,
                                                                                                          F<java.lang.Character,​E> sat)
        Returns a parser that produces a title-case character.
        Parameters:
        missing - The error if there is no character on the stream to produce a title-case character with.
        sat - The error if the produced character is not a title-case character.
        Returns:
        A parser that produces a title-case character.
        See Also:
        Character.isTitleCase(char)
      • unicodeIdentiferPart

        public static <E> Parser<Stream<java.lang.Character>,​java.lang.Character,​E> unicodeIdentiferPart​(F0<E> missing,
                                                                                                                     F<java.lang.Character,​E> sat)
        Returns a parser that produces a unicode identifier part character.
        Parameters:
        missing - The error if there is no character on the stream to produce a unicode identifier part character with.
        sat - The error if the produced character is not a unicode identifier part character.
        Returns:
        A parser that produces a unicode identifier part character.
        See Also:
        Character.isUnicodeIdentifierPart(char)
      • unicodeIdentiferPart

        public static <E> Parser<Stream<java.lang.Character>,​java.lang.Character,​E> unicodeIdentiferPart​(E missing,
                                                                                                                     F<java.lang.Character,​E> sat)
        Returns a parser that produces a unicode identifier part character.
        Parameters:
        missing - The error if there is no character on the stream to produce a unicode identifier part character with.
        sat - The error if the produced character is not a unicode identifier part character.
        Returns:
        A parser that produces a unicode identifier part character.
        See Also:
        Character.isUnicodeIdentifierPart(char)
      • unicodeIdentiferStart

        public static <E> Parser<Stream<java.lang.Character>,​java.lang.Character,​E> unicodeIdentiferStart​(F0<E> missing,
                                                                                                                      F<java.lang.Character,​E> sat)
        Returns a parser that produces a unicode identifier start character.
        Parameters:
        missing - The error if there is no character on the stream to produce a unicode identifier start character with.
        sat - The error if the produced character is not a unicode identifier start character.
        Returns:
        A parser that produces a unicode identifier start character.
        See Also:
        Character.isUnicodeIdentifierStart(char)
      • unicodeIdentiferStart

        public static <E> Parser<Stream<java.lang.Character>,​java.lang.Character,​E> unicodeIdentiferStart​(E missing,
                                                                                                                      F<java.lang.Character,​E> sat)
        Returns a parser that produces a unicode identifier start character.
        Parameters:
        missing - The error if there is no character on the stream to produce a unicode identifier start character with.
        sat - The error if the produced character is not a unicode identifier start character.
        Returns:
        A parser that produces a unicode identifier start character.
        See Also:
        Character.isUnicodeIdentifierStart(char)
      • whitespace

        public static <E> Parser<Stream<java.lang.Character>,​java.lang.Character,​E> whitespace​(F0<E> missing,
                                                                                                           F<java.lang.Character,​E> sat)
        Returns a parser that produces a white-space character.
        Parameters:
        missing - The error if there is no character on the stream to produce a white-space character with.
        sat - The error if the produced character is not a white-space character.
        Returns:
        A parser that produces a white-space character.
        See Also:
        Character.isWhitespace(char)
      • whitespace

        public static <E> Parser<Stream<java.lang.Character>,​java.lang.Character,​E> whitespace​(E missing,
                                                                                                           F<java.lang.Character,​E> sat)
        Returns a parser that produces a white-space character.
        Parameters:
        missing - The error if there is no character on the stream to produce a white-space character with.
        sat - The error if the produced character is not a white-space character.
        Returns:
        A parser that produces a white-space character.
        See Also:
        Character.isWhitespace(char)