|
Copyright 2008 - 2009 Tony Morris, Runar Bjarnason, Tom Adams, Brad Clow, Ricky Clarkson, Nick Partridge, Jason Zaugg This software is released under an open source BSD licence. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfj.parser.Parser.CharsParser
public static final class Parser.CharsParser
Parsers that accept Stream<Character>
input.
Method Summary | ||
---|---|---|
static
|
alpha(E missing,
F<Character,E> sat)
Returns a parser that produces an alpha character. |
|
static
|
alpha(P1<E> missing,
F<Character,E> sat)
Returns a parser that produces an alpha character. |
|
static
|
alphaNum(E missing,
F<Character,E> sat)
Returns a parser that produces an alpha-numeric character. |
|
static
|
alphaNum(P1<E> missing,
F<Character,E> sat)
Returns a parser that produces an alpha-numeric character. |
|
static
|
character(E e)
Returns a parser that produces a character if one is available or fails with the given error. |
|
static
|
character(E missing,
F<Character,E> sat,
char c)
Returns a parser that produces the given character or fails otherwise. |
|
static
|
character(P1<E> e)
Returns a parser that produces a character if one is available or fails with the given error. |
|
static
|
character(P1<E> missing,
F<Character,E> sat,
char c)
Returns a parser that produces the given character or fails otherwise. |
|
static
|
characters(E missing,
F<Character,E> sat,
Stream<Character> cs)
Returns a parser that produces the given stream of characters or fails otherwise. |
|
static
|
characters(E missing,
int n)
Returns a parser that produces the given number of characters, or fails with the given error. |
|
static
|
characters(P1<E> missing,
F<Character,E> sat,
Stream<Character> cs)
Returns a parser that produces the given stream of characters or fails otherwise. |
|
static
|
characters(P1<E> missing,
int n)
Returns a parser that produces the given number of characters, or fails with the given error. |
|
static
|
defined(E missing,
F<Character,E> sat)
Returns a parser that produces a defined character. |
|
static
|
defined(P1<E> missing,
F<Character,E> sat)
Returns a parser that produces a defined character. |
|
static
|
digit(E missing,
F<Character,E> sat)
Returns a parser that produces a digit (0 to 9). |
|
static
|
digit(P1<E> missing,
F<Character,E> sat)
Returns a parser that produces a digit (0 to 9). |
|
static
|
highSurrogate(E missing,
F<Character,E> sat)
Returns a parser that produces a high-surrogate character. |
|
static
|
highSurrogate(P1<E> missing,
F<Character,E> sat)
Returns a parser that produces a high-surrogate character. |
|
static
|
identifierIgnorable(E missing,
F<Character,E> sat)
Returns a parser that produces an identifier-ignorable character. |
|
static
|
identifierIgnorable(P1<E> missing,
F<Character,E> sat)
Returns a parser that produces an identifier-ignorable character. |
|
static
|
isoControl(E missing,
F<Character,E> sat)
Returns a parser that produces an ISO control character. |
|
static
|
isoControl(P1<E> missing,
F<Character,E> sat)
Returns a parser that produces an ISO control character. |
|
static
|
javaIdentifierPart(E missing,
F<Character,E> sat)
Returns a parser that produces a Java identifier part character. |
|
static
|
javaIdentifierPart(P1<E> missing,
F<Character,E> sat)
Returns a parser that produces a Java identifier part character. |
|
static
|
javaIdentifierStart(E missing,
F<Character,E> sat)
Returns a parser that produces a Java identifier start character. |
|
static
|
javaIdentifierStart(P1<E> missing,
F<Character,E> sat)
Returns a parser that produces a Java identifier start character. |
|
static
|
lower(E missing,
F<Character,E> sat)
Returns a parser that produces a lower-case character. |
|
static
|
lower(P1<E> missing,
F<Character,E> sat)
Returns a parser that produces a lower-case character. |
|
static
|
lowSurrogate(E missing,
F<Character,E> sat)
Returns a parser that produces a low-surrogate character. |
|
static
|
lowSurrogate(P1<E> missing,
F<Character,E> sat)
Returns a parser that produces a low-surrogate character. |
|
static
|
mirrored(E missing,
F<Character,E> sat)
Returns a parser that produces a mirrored character. |
|
static
|
mirrored(P1<E> missing,
F<Character,E> sat)
Returns a parser that produces a mirrored character. |
|
static
|
space(E missing,
F<Character,E> sat)
Returns a parser that produces a space character. |
|
static
|
space(P1<E> missing,
F<Character,E> sat)
Returns a parser that produces a space character. |
|
static
|
string(E missing,
F<Character,E> sat,
String s)
Returns a parser that produces the given string or fails otherwise. |
|
static
|
string(P1<E> missing,
F<Character,E> sat,
String s)
Returns a parser that produces the given string or fails otherwise. |
|
static
|
titleCase(E missing,
F<Character,E> sat)
Returns a parser that produces a title-case character. |
|
static
|
titleCase(P1<E> missing,
F<Character,E> sat)
Returns a parser that produces a title-case character. |
|
static
|
unicodeIdentiferPart(E missing,
F<Character,E> sat)
Returns a parser that produces a unicode identifier part character. |
|
static
|
unicodeIdentiferPart(P1<E> missing,
F<Character,E> sat)
Returns a parser that produces a unicode identifier part character. |
|
static
|
unicodeIdentiferStart(E missing,
F<Character,E> sat)
Returns a parser that produces a unicode identifier start character. |
|
static
|
unicodeIdentiferStart(P1<E> missing,
F<Character,E> sat)
Returns a parser that produces a unicode identifier start character. |
|
static
|
upper(E missing,
F<Character,E> sat)
Returns a parser that produces a upper-case character. |
|
static
|
upper(P1<E> missing,
F<Character,E> sat)
Returns a parser that produces a upper-case character. |
|
static
|
whitespace(E missing,
F<Character,E> sat)
Returns a parser that produces a white-space character. |
|
static
|
whitespace(P1<E> missing,
F<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 |
Method Detail |
---|
public static <E> Parser<Stream<Character>,Character,E> character(P1<E> e)
e
- The error to fail with if a character is unavailable.
public static <E> Parser<Stream<Character>,Character,E> character(E e)
e
- The error to fail with if a character is unavailable.
public static <E> Parser<Stream<Character>,Character,E> character(P1<E> missing, F<Character,E> sat, char c)
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.
public static <E> Parser<Stream<Character>,Character,E> character(E missing, F<Character,E> sat, char c)
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.
public static <E> Parser<Stream<Character>,Stream<Character>,E> characters(P1<E> missing, int n)
missing
- The error if the given number of characters is unavailable.n
- The number of characters to produce in the parse result.
public static <E> Parser<Stream<Character>,Stream<Character>,E> characters(E missing, int n)
missing
- The error if the given number of characters is unavailable.n
- The number of characters to produce in the parse result.
public static <E> Parser<Stream<Character>,Stream<Character>,E> characters(P1<E> missing, F<Character,E> sat, Stream<Character> cs)
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.
public static <E> Parser<Stream<Character>,Stream<Character>,E> characters(E missing, F<Character,E> sat, Stream<Character> cs)
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.
public static <E> Parser<Stream<Character>,String,E> string(P1<E> missing, F<Character,E> sat, String s)
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.
public static <E> Parser<Stream<Character>,String,E> string(E missing, F<Character,E> sat, String s)
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.
public static <E> Parser<Stream<Character>,Digit,E> digit(P1<E> missing, F<Character,E> sat)
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.
public static <E> Parser<Stream<Character>,Digit,E> digit(E missing, F<Character,E> sat)
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.
public static <E> Parser<Stream<Character>,Character,E> lower(P1<E> missing, F<Character,E> sat)
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.
Character.isLowerCase(char)
public static <E> Parser<Stream<Character>,Character,E> lower(E missing, F<Character,E> sat)
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.
Character.isLowerCase(char)
public static <E> Parser<Stream<Character>,Character,E> upper(P1<E> missing, F<Character,E> sat)
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.
Character.isUpperCase(char)
public static <E> Parser<Stream<Character>,Character,E> upper(E missing, F<Character,E> sat)
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.
Character.isUpperCase(char)
public static <E> Parser<Stream<Character>,Character,E> defined(P1<E> missing, F<Character,E> sat)
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.
Character.isDefined(char)
public static <E> Parser<Stream<Character>,Character,E> defined(E missing, F<Character,E> sat)
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.
Character.isDefined(char)
public static <E> Parser<Stream<Character>,Character,E> highSurrogate(P1<E> missing, F<Character,E> sat)
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.
Character.isHighSurrogate(char)
public static <E> Parser<Stream<Character>,Character,E> highSurrogate(E missing, F<Character,E> sat)
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.
Character.isHighSurrogate(char)
public static <E> Parser<Stream<Character>,Character,E> identifierIgnorable(P1<E> missing, F<Character,E> sat)
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.
Character.isIdentifierIgnorable(char)
public static <E> Parser<Stream<Character>,Character,E> identifierIgnorable(E missing, F<Character,E> sat)
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.
Character.isIdentifierIgnorable(char)
public static <E> Parser<Stream<Character>,Character,E> isoControl(P1<E> missing, F<Character,E> sat)
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.
Character.isISOControl(char)
public static <E> Parser<Stream<Character>,Character,E> isoControl(E missing, F<Character,E> sat)
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.
Character.isISOControl(char)
public static <E> Parser<Stream<Character>,Character,E> javaIdentifierPart(P1<E> missing, F<Character,E> sat)
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.
Character.isJavaIdentifierPart(char)
public static <E> Parser<Stream<Character>,Character,E> javaIdentifierPart(E missing, F<Character,E> sat)
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.
Character.isJavaIdentifierPart(char)
public static <E> Parser<Stream<Character>,Character,E> javaIdentifierStart(P1<E> missing, F<Character,E> sat)
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.
Character.isJavaIdentifierStart(char)
public static <E> Parser<Stream<Character>,Character,E> javaIdentifierStart(E missing, F<Character,E> sat)
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.
Character.isJavaIdentifierStart(char)
public static <E> Parser<Stream<Character>,Character,E> alpha(P1<E> missing, F<Character,E> sat)
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.
Character.isLetter(char)
public static <E> Parser<Stream<Character>,Character,E> alpha(E missing, F<Character,E> sat)
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.
Character.isLetter(char)
public static <E> Parser<Stream<Character>,Character,E> alphaNum(P1<E> missing, F<Character,E> sat)
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.
Character.isLetterOrDigit(char)
public static <E> Parser<Stream<Character>,Character,E> alphaNum(E missing, F<Character,E> sat)
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.
Character.isLetterOrDigit(char)
public static <E> Parser<Stream<Character>,Character,E> lowSurrogate(P1<E> missing, F<Character,E> sat)
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.
Character.isLowSurrogate(char)
public static <E> Parser<Stream<Character>,Character,E> lowSurrogate(E missing, F<Character,E> sat)
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.
Character.isLowSurrogate(char)
public static <E> Parser<Stream<Character>,Character,E> mirrored(P1<E> missing, F<Character,E> sat)
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.
Character.isMirrored(char)
public static <E> Parser<Stream<Character>,Character,E> mirrored(E missing, F<Character,E> sat)
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.
Character.isMirrored(char)
public static <E> Parser<Stream<Character>,Character,E> space(P1<E> missing, F<Character,E> sat)
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.
Character.isSpace(char)
public static <E> Parser<Stream<Character>,Character,E> space(E missing, F<Character,E> sat)
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.
Character.isSpace(char)
public static <E> Parser<Stream<Character>,Character,E> titleCase(P1<E> missing, F<Character,E> sat)
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.
Character.isTitleCase(char)
public static <E> Parser<Stream<Character>,Character,E> titleCase(E missing, F<Character,E> sat)
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.
Character.isTitleCase(char)
public static <E> Parser<Stream<Character>,Character,E> unicodeIdentiferPart(P1<E> missing, F<Character,E> sat)
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.
Character.isUnicodeIdentifierPart(char)
public static <E> Parser<Stream<Character>,Character,E> unicodeIdentiferPart(E missing, F<Character,E> sat)
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.
Character.isUnicodeIdentifierPart(char)
public static <E> Parser<Stream<Character>,Character,E> unicodeIdentiferStart(P1<E> missing, F<Character,E> sat)
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.
Character.isUnicodeIdentifierStart(char)
public static <E> Parser<Stream<Character>,Character,E> unicodeIdentiferStart(E missing, F<Character,E> sat)
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.
Character.isUnicodeIdentifierStart(char)
public static <E> Parser<Stream<Character>,Character,E> whitespace(P1<E> missing, F<Character,E> sat)
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.
Character.isWhitespace(char)
public static <E> Parser<Stream<Character>,Character,E> whitespace(E missing, F<Character,E> sat)
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.
Character.isWhitespace(char)
|
Copyright 2008 - 2009 Tony Morris, Runar Bjarnason, Tom Adams, Brad Clow, Ricky Clarkson, Nick Partridge, Jason Zaugg This software is released under an open source BSD licence. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |