Backslash character.
Backslash character.
Parses the lower-case values true
and false
into their respesct Boolean values.
Parses the lower-case values true
and false
into their respesct Boolean values.
Double quote character.
Double quote character.
Matches a single double quote.
Matches a single double quote.
Parses any single digit and provides that digit as a Char as the result.
Parses any single digit and provides that digit as a Char as the result.
Set that contains each digit in a String representation.
Set that contains each digit in a String representation.
Matches the end of input, providing no useful result on success.
Matches the end of input, providing no useful result on success.
Parses a single escape sequence into the represented Char.
Parses a single escape sequence into the represented Char.
Escapes start with a backslash and are followed by u
for a UnicodeEscape or by b
, t
, n
, f
, r
, "
, '
, \
for standard escapes.
Parses a single hexadecimal digit (0-9, a-f, A-F).
Parses a single hexadecimal digit (0-9, a-f, A-F).
Set containing Chars for hexadecimal digits 0-9 and A-F (but not a-f).
Set containing Chars for hexadecimal digits 0-9 and A-F (but not a-f).
Parses an identifier String, which must start with IDStart and contain zero or more IDChars after that.
Parses an identifier Char other than the first character.
Parses an identifier Char other than the first character. This includes letters, digits, dash -
, and underscore _
.
Parses the first Char in an sbt identifier, which must be a Letter.
Parses a signed integer.
Parses a signed integer.
Parses a single letter, according to Char.isLetter, into a Char.
Parses a single letter, according to Char.isLetter, into a Char.
Parses an unsigned integer.
Parses an unsigned integer.
Matches any character except a double quote or backslash.
Matches any character except a double quote or backslash.
Matches any character except a double quote or whitespace.
Matches any character except a double quote or whitespace.
Parses an unquoted, non-empty String value that cannot start with a double quote and cannot contain whitespace.
Parses an unquoted, non-empty String value that cannot start with a double quote and cannot contain whitespace.
Matches a non-empty String consisting of non-whitespace characters.
Matches a non-empty String consisting of non-whitespace characters.
Matches a single character that is not a whitespace character.
Matches a single character that is not a whitespace character.
Parses a non-empty operator String, which consists only of characters allowed by OpChar.
Parses a single operator Char, as allowed by isOpChar.
Parses either an operator String defined by Op or a non-symbolic identifier defined by ID.
Matches a possibly empty String consisting of non-whitespace characters.
Matches a possibly empty String consisting of non-whitespace characters.
Matches a possibly empty String consisting of whitespace characters.
Matches a possibly empty String consisting of whitespace characters. The suggested tab completion is a single, constant space character.
Parses a port number.
Parses a port number. Currently, this accepts any integer and presents a tab completion suggestion of <port>
.
Parses a non-symbolic Scala-like identifier.
Parses a non-symbolic Scala-like identifier. The identifier must start with IDStart and contain zero or more ScalaIDChars after that.
Parses a single, non-symbolic Scala identifier Char.
Parses a single, non-symbolic Scala identifier Char. Valid characters are letters, digits, and the underscore character _
.
Matches a non-empty String consisting of whitespace characters.
Matches a non-empty String consisting of whitespace characters. The suggested tab completion is a single, constant space character.
Matches a single whitespace character, as determined by Char.isWhitespace.
Matches a single whitespace character, as determined by Char.isWhitespace.
Parses a potentially quoted String value.
Parses a potentially quoted String value. The value may be verbatim quoted (StringVerbatim), quoted with interpreted escapes (StringEscapable), or unquoted (NotQuoted).
Parses a string value, interpreting escapes and discarding the surrounding quotes in the result.
Parses a string value, interpreting escapes and discarding the surrounding quotes in the result. See EscapeSequence for supported escapes.
Parses a verbatim quoted String value, discarding the quotes in the result.
Parses a verbatim quoted String value, discarding the quotes in the result. This kind of quoted text starts with triple quotes """
and ends at the next triple quotes and may contain any character in between.
Matches a single character that is valid somewhere in a URI.
Matches a single character that is valid somewhere in a URI.
Parses a non-empty String that contains only valid URI characters, as defined by URIChar.
Parses a single unicode escape sequence into the represented Char.
Parses a single unicode escape sequence into the represented Char.
A unicode escape begins with a backslash, followed by a u
and 4 hexadecimal digits representing the unicode value.
Parses a URI that is valid according to the single argument java.net.URI constructor, using ex
as tab completion examples.
Parses a URI that is valid according to the single argument java.net.URI constructor, using ex
as tab completion examples.
Triple-quotes, as used for verbatim quoting.
Triple-quotes, as used for verbatim quoting.
Returns true if c
is an ASCII letter or digit.
Returns true if c
is an ASCII letter or digit.
Parses any single character and provides that character as the result.
Parses any single character and provides that character as the result.
Parses a URI that is valid according to the single argument java.net.URI constructor.
Parses a URI that is valid according to the single argument java.net.URI constructor.
the directory used for completion proposals (when the user presses the TAB key). Only paths under this directory will be proposed.
the file that was parsed from the input string. The returned path may or may not exist.
Applies p
and uses true
as the result if it succeeds and turns failure into a result of false
.
Applies p
and uses true
as the result if it succeeds and turns failure into a result of false
.
Parses a String that starts with start
and is followed by zero or more characters parsed by rep
.
Parses a String that starts with start
and is followed by zero or more characters parsed by rep
.
Returns true if c
is a dash -
, a letter, digit, or an underscore _
.
Returns true if c
is a dash -
, a letter, digit, or an underscore _
.
Returns true if c
an operator character.
Returns true if c
an operator character.
Returns true if c
is a letter, digit, or an underscore _
.
Returns true if c
is a letter, digit, or an underscore _
.
Applies f
to the result of p
, transforming any exception when evaluating
f
into a parse failure with the exception toString
as the message.
Applies f
to the result of p
, transforming any exception when evaluating
f
into a parse failure with the exception toString
as the message.
Applies rep
one or more times, separated by sep
.
Applies rep
one or more times, separated by sep
.
The result is the non-empty sequence of results from the multiple rep
applications. The sep
results are discarded.
Defines a sequence parser where the parser used for each part depends on the previously parsed values.
Defines a sequence parser where the parser used for each part depends on the previously parsed values.
p
is applied to the (possibly empty) sequence of already parsed values to obtain the next parser to use.
The parsers obtained in this way are separated by sep
, whose result is discarded and only the sequence
of values from the parsers returned by p
is used for the result.
Applies rep
zero or more times, separated by sep
.
Applies rep
zero or more times, separated by sep
.
The result is the (possibly empty) sequence of results from the multiple rep
applications. The sep
results are discarded.
Wraps the result of p
in Some
.
Wraps the result of p
in Some
.
Parses a space-delimited, possibly empty sequence of arguments.
Parses a space-delimited, possibly empty sequence of arguments. The arguments may use quotes and escapes according to StringBasic.
Applies String.trim to the result of p
.
Applies String.trim to the result of p
.
Provides standard Parser implementations.