sbt.complete

Parser

object Parser extends ParserMain

Linear Supertypes
ParserMain, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. Parser
  2. ParserMain
  3. AnyRef
  4. Any
Visibility
  1. Public
  2. All

Type Members

  1. final class Failure extends Result[Nothing]

  2. sealed abstract class Result[+T] extends AnyRef

  3. final case class Value[+T](value: T) extends Result[T] with Product with Serializable

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def and[T](a: Parser[T], b: sbt.complete.Parser[_]): Parser[T]

  7. def apply[T](p: Parser[T])(s: String): Parser[T]

    Definition Classes
    ParserMain
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def bindParser[A, B](a: Parser[A], f: (A) ⇒ Parser[B]): Parser[B]

  10. def charClass(f: (Char) ⇒ Boolean, label: String = "<unspecified>"): Parser[Char]

    Definition Classes
    ParserMain
  11. def chars(legal: String): Parser[Char]

    Definition Classes
    ParserMain
  12. def checkMatches(a: sbt.complete.Parser[_], completions: Seq[String]): Unit

  13. def choiceParser[A, B](a: Parser[A], b: Parser[B]): Parser[Either[A, B]]

  14. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  15. def completions(p: sbt.complete.Parser[_], s: String, level: Int): Completions

    Definition Classes
    ParserMain
  16. def derive1[T](p: Parser[T], c: Char): Parser[T]

    Definition Classes
    ParserMain
  17. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  19. def examples[A](a: Parser[A], completions: Set[String], check: Boolean): Parser[A]

    Definition Classes
    ParserMain
  20. def failure(msg: ⇒ String): Parser[Nothing]

    Definition Classes
    ParserMain
  21. def filterParser[T](a: Parser[T], f: (T) ⇒ Boolean, seen: String, msg: (String) ⇒ String): Parser[T]

  22. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  23. final def getClass(): java.lang.Class[_]

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

    Definition Classes
    AnyRef → Any
  25. def homParser[A](a: Parser[A], b: Parser[A]): Parser[A]

    Definition Classes
    ParserMain
  26. def invalid(msgs: ⇒ Seq[String]): Parser[Nothing]

    Definition Classes
    ParserMain
  27. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  28. implicit def literal(s: String): Parser[String]

    Definition Classes
    ParserMain
  29. implicit def literal(ch: Char): Parser[Char]

    Definition Classes
    ParserMain
  30. implicit def literalRichCharParser(c: Char): RichParser[Char]

    Definition Classes
    ParserMain
  31. implicit def literalRichStringParser(s: String): RichParser[String]

    Definition Classes
    ParserMain
  32. def mapParser[A, B](a: Parser[A], f: (A) ⇒ B): Parser[B]

  33. def matched(t: sbt.complete.Parser[_], seen: Vector[Char] = Vector.empty, partial: Boolean = false): Parser[String]

    Definition Classes
    ParserMain
  34. def mkFailure(error: ⇒ String): Failure

  35. def mkFailures(errors: ⇒ Seq[String]): Failure

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

    Definition Classes
    AnyRef
  37. def not(p: sbt.complete.Parser[_], failMessage: String): Parser[Unit]

    Definition Classes
    ParserMain
  38. final def notify(): Unit

    Definition Classes
    AnyRef
  39. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  40. def onFailure[T](delegate: Parser[T], msg: String): Parser[T]

  41. def oneOf[T](p: Seq[Parser[T]]): Parser[T]

    Definition Classes
    ParserMain
  42. def oneOrMore[T](p: Parser[T]): Parser[Seq[T]]

  43. def opt[T](a: Parser[T]): Parser[Option[T]]

  44. def parse[T](str: String, parser: Parser[T]): Either[String, T]

    Definition Classes
    ParserMain
  45. implicit def range(r: NumericRange[Char]): Parser[Char]

    Definition Classes
    ParserMain
  46. def repeat[T](p: Parser[T], min: Int, max: UpperBound): Parser[Seq[T]]

  47. def result[T](p: Parser[T], s: String): Either[() ⇒ (Seq[String], Int), T]

    Definition Classes
    ParserMain
  48. implicit def richParser[A](a: Parser[A]): RichParser[A]

    Definition Classes
    ParserMain
  49. def sample(str: String, parser: sbt.complete.Parser[_], completions: Boolean = false): Unit

    Definition Classes
    ParserMain
  50. def sampleCompletions(str: String, parser: sbt.complete.Parser[_], level: Int = 1): Unit

    Definition Classes
    ParserMain
  51. def sampleParse(str: String, parser: sbt.complete.Parser[_]): Unit

    Definition Classes
    ParserMain
  52. def seq[T](p: Seq[Parser[T]]): Parser[Seq[T]]

    Definition Classes
    ParserMain
  53. def seq0[T](p: Seq[Parser[T]], errors: ⇒ Seq[String]): Parser[Seq[T]]

    Definition Classes
    ParserMain
  54. def seqParser[A, B](a: Parser[A], b: Parser[B]): Parser[(A, B)]

  55. def stringLiteral(s: String, start: Int): Parser[String]

    Definition Classes
    ParserMain
  56. def success[T](value: T): Parser[T]

    Definition Classes
    ParserMain
  57. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  58. def toString(): String

    Definition Classes
    AnyRef → Any
  59. def token[T](t: Parser[T], complete: TokenCompletions): Parser[T]

    Definition Classes
    ParserMain
  60. def token[T](t: Parser[T], description: String): Parser[T]

    Establishes delegate parser t as a single token of tab completion.

    Establishes delegate parser t as a single token of tab completion. When tab completion of part of this token is requested, description is displayed for suggestions and no completions are ever performed.

    Definition Classes
    ParserMain
  61. def token[T](t: Parser[T], hide: (Int) ⇒ Boolean): Parser[T]

    Establishes delegate parser t as a single token of tab completion.

    Establishes delegate parser t as a single token of tab completion. When tab completion of part of this token is requested, no completions are returned if hide returns true for the current tab completion level. Otherwise, the completions provided by the delegate t or a later derivative are appended to the prefix String already seen by this parser.

    Definition Classes
    ParserMain
  62. def token[T](t: Parser[T]): Parser[T]

    Establishes delegate parser t as a single token of tab completion.

    Establishes delegate parser t as a single token of tab completion. When tab completion of part of this token is requested, the completions provided by the delegate t or a later derivative are appended to the prefix String already seen by this parser.

    Definition Classes
    ParserMain
  63. def tokenDisplay[T](t: Parser[T], display: String): Parser[T]

    Establishes delegate parser t as a single token of tab completion.

    Establishes delegate parser t as a single token of tab completion. When tab completion of part of this token is requested, display is used as the printed suggestion, but the completions from the delegate parser t are used to complete if unambiguous.

    Definition Classes
    ParserMain
  64. def trapAndFail[T](delegate: Parser[T]): Parser[T]

  65. def tuple[A, B](a: Option[A], b: Option[B]): Option[(A, B)]

  66. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()
  69. def zeroOrMore[T](p: Parser[T]): Parser[Seq[T]]

  70. object ~ extends AnyRef

Deprecated Value Members

  1. def not(p: sbt.complete.Parser[_]): Parser[Unit]

    Definition Classes
    ParserMain
    Annotations
    @deprecated
    Deprecated

    (Since version 0.12.2) Explicitly specify the failure message.

  2. def sub[T](a: Parser[T], b: sbt.complete.Parser[_]): Parser[T]

    Annotations
    @deprecated
    Deprecated

    (Since version 0.12.2) Explicitly call and and not to provide the failure message.

  3. def token[T](t: Parser[T], seen: String, track: Boolean, hide: (Int) ⇒ Boolean): Parser[T]

    Definition Classes
    ParserMain
    Annotations
    @deprecated
    Deprecated

    (Since version 0.12.1) Use a different token overload.

Inherited from ParserMain

Inherited from AnyRef

Inherited from Any