Trait/Object

sbt.internal.util.complete

Parsers

Related Docs: object Parsers | package complete

Permalink

trait Parsers extends AnyRef

Provides standard implementations of commonly useful Parsers.

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Parsers
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. lazy val BackslashChar: Char

    Permalink

    Backslash character.

  5. lazy val Bool: Parser[Boolean]

    Permalink

    Parses the lower-case values true and false into their respesct Boolean values.

  6. lazy val DQuoteChar: Char

    Permalink

    Double quote character.

  7. lazy val DQuoteClass: Parser[Char]

    Permalink

    Matches a single double quote.

  8. lazy val Digit: Parser[Char]

    Permalink

    Parses any single digit and provides that digit as a Char as the result.

  9. lazy val DigitSet: Set[String]

    Permalink

    Set that contains each digit in a String representation.

  10. lazy val EOF: Parser[Unit]

    Permalink

    Matches the end of input, providing no useful result on success.

  11. lazy val EscapeSequence: Parser[Char]

    Permalink

    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.

  12. lazy val HexDigit: Parser[Char]

    Permalink

    Parses a single hexadecimal digit (0-9, a-f, A-F).

  13. lazy val HexDigitSet: Set[Char]

    Permalink

    Set containing Chars for hexadecimal digits 0-9 and A-F (but not a-f).

  14. lazy val ID: Parser[String]

    Permalink

    Parses an identifier String, which must start with IDStart and contain zero or more IDChars after that.

  15. lazy val IDChar: Parser[Char]

    Permalink

    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 _.

  16. def IDStart: Parser[Char]

    Permalink

    Parses the first Char in an sbt identifier, which must be a Letter.

  17. lazy val IntBasic: Parser[Int]

    Permalink

    Parses a signed integer.

  18. lazy val Letter: Parser[Char]

    Permalink

    Parses a single letter, according to Char.isLetter, into a Char.

  19. lazy val NatBasic: Parser[Int]

    Permalink

    Parses an unsigned integer.

  20. lazy val NotDQuoteBackslashClass: Parser[Char]

    Permalink

    Matches any character except a double quote or backslash.

  21. lazy val NotDQuoteSpaceClass: Parser[Char]

    Permalink

    Matches any character except a double quote or whitespace.

  22. lazy val NotQuoted: Parser[String]

    Permalink

    Parses an unquoted, non-empty String value that cannot start with a double quote and cannot contain whitespace.

  23. lazy val NotSpace: Parser[String]

    Permalink

    Matches a non-empty String consisting of non-whitespace characters.

  24. lazy val NotSpaceClass: Parser[Char]

    Permalink

    Matches a single character that is not a whitespace character.

  25. lazy val Op: Parser[String]

    Permalink

    Parses a non-empty operator String, which consists only of characters allowed by OpChar.

  26. lazy val OpChar: Parser[Char]

    Permalink

    Parses a single operator Char, as allowed by isOpChar.

  27. lazy val OpOrID: Parser[String]

    Permalink

    Parses either an operator String defined by Op or a non-symbolic identifier defined by ID.

  28. lazy val OptNotSpace: Parser[String]

    Permalink

    Matches a possibly empty String consisting of non-whitespace characters.

  29. lazy val OptSpace: Parser[Seq[Char]]

    Permalink

    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.

  30. lazy val Port: Parser[Int]

    Permalink

    Parses a port number.

    Parses a port number. Currently, this accepts any integer and presents a tab completion suggestion of <port>.

  31. lazy val ScalaID: Parser[String]

    Permalink

    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.

  32. lazy val ScalaIDChar: Parser[Char]

    Permalink

    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 _.

  33. lazy val Space: Parser[Seq[Char]]

    Permalink

    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.

  34. lazy val SpaceClass: Parser[Char]

    Permalink

    Matches a single whitespace character, as determined by Char.isWhitespace.

  35. lazy val StringBasic: Parser[String]

    Permalink

    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).

  36. lazy val StringEscapable: Parser[String]

    Permalink

    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.

  37. lazy val StringVerbatim: Parser[String]

    Permalink

    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.

  38. lazy val URIChar: Parser[Char]

    Permalink

    Matches a single character that is valid somewhere in a URI.

  39. lazy val URIClass: Parser[String]

    Permalink

    Parses a non-empty String that contains only valid URI characters, as defined by URIChar.

  40. lazy val UnicodeEscape: Parser[Char]

    Permalink

    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.

  41. def Uri(ex: Set[URI]): Parser[URI]

    Permalink

    Parses a URI that is valid according to the single argument java.net.URI constructor, using ex as tab completion examples.

  42. lazy val VerbatimDQuotes: String

    Permalink

    Triple-quotes, as used for verbatim quoting.

  43. def alphanum(c: Char): Boolean

    Permalink

    Returns true if c is an ASCII letter or digit.

  44. lazy val any: Parser[Char]

    Permalink

    Parses any single character and provides that character as the result.

  45. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  46. lazy val basicUri: Parser[URI]

    Permalink

    Parses a URI that is valid according to the single argument java.net.URI constructor.

  47. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  48. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  49. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  50. def fileParser(base: File): Parser[File]

    Permalink

    base

    the directory used for completion proposals (when the user presses the TAB key). Only paths under this directory will be proposed.

    returns

    the file that was parsed from the input string. The returned path may or may not exist.

  51. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  52. def flag[T](p: Parser[T]): Parser[Boolean]

    Permalink

    Applies p and uses true as the result if it succeeds and turns failure into a result of false.

  53. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  54. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  55. def identifier(start: Parser[Char], rep: Parser[Char]): Parser[String]

    Permalink

    Parses a String that starts with start and is followed by zero or more characters parsed by rep.

  56. def isDelimiter(c: Char): Boolean

    Permalink
  57. def isIDChar(c: Char): Boolean

    Permalink

    Returns true if c is a dash -, a letter, digit, or an underscore _.

  58. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  59. def isOpChar(c: Char): Boolean

    Permalink

    Returns true if c an operator character.

  60. def isOpType(cat: Int): Boolean

    Permalink
  61. def isScalaIDChar(c: Char): Boolean

    Permalink

    Returns true if c is a letter, digit, or an underscore _.

  62. def mapOrFail[S, T](p: Parser[S])(f: (S) ⇒ T): Parser[T]

    Permalink

    Applies f to the result of p, transforming any exception when evaluating f into a parse failure with the exception toString as the message.

  63. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  64. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  65. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  66. def opOrIDSpaced(s: String): Parser[Char]

    Permalink
  67. def rep1sep[T](rep: Parser[T], sep: Parser[_]): Parser[Seq[T]]

    Permalink

    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.

  68. def repeatDep[A](p: (Seq[A]) ⇒ Parser[A], sep: Parser[Any]): Parser[Seq[A]]

    Permalink

    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.

  69. def repsep[T](rep: Parser[T], sep: Parser[_]): Parser[Seq[T]]

    Permalink

    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.

  70. def some[T](p: Parser[T]): Parser[Option[T]]

    Permalink

    Wraps the result of p in Some.

  71. def spaceDelimited(display: String): Parser[Seq[String]]

    Permalink

    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.

  72. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  73. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  74. def trimmed(p: Parser[String]): Parser[String]

    Permalink

    Applies String.trim to the result of p.

  75. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  76. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  77. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped