Object

parsecat.parsers

character

Related Doc: package parsers

Permalink

object character extends CharacterParsers

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. character
  2. CharacterParsers
  3. Combinators
  4. AnyRef
  5. 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 alphaNum: TextParser[Char]

    Permalink

    Parses and returns a letter or digit ('0' - '9').

    Parses and returns a letter or digit ('0' - '9').

    Definition Classes
    CharacterParsers
  5. final def andThen[F[_], S, C, P, A, B](p1: ParserT[F, S, C, P, A], p2: ParserT[F, S, C, P, B])(implicit F: Monad[F], P0: Order[P], P1: Show[P]): ParserT[F, S, C, P, (A, B)]

    Permalink

    A parser which returns a tuple of results produced by parsers p1 and p2.

    A parser which returns a tuple of results produced by parsers p1 and p2.

    Definition Classes
    Combinators
  6. lazy val anyChar: TextParser[Char]

    Permalink

    Parses and returns any character.

    Parses and returns any character.

    Definition Classes
    CharacterParsers
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. final def between[F[_], S, C, P, A, OP, CL](open: ParserT[F, S, C, P, OP], close: ParserT[F, S, C, P, CL], p: ParserT[F, S, C, P, A])(implicit F: Monad[F], P0: Order[P], P1: Show[P]): ParserT[F, S, C, P, A]

    Permalink

    Parses open then applies p followed by close.

    Parses open then applies p followed by close. Returns result of the p parser.

    Definition Classes
    Combinators
  9. final def bindCons[F[_], S, C, P, A](p: ParserT[F, S, C, P, A], tail: ⇒ ParserT[F, S, C, P, List[A]])(implicit F: Monad[F], P0: Order[P], P1: Show[P]): ParserT[F, S, C, P, List[A]]

    Permalink
    Definition Classes
    Combinators
  10. final def char(expected: Char): TextParser[Char]

    Permalink

    Parses and returns the specified character.

    Parses and returns the specified character.

    Definition Classes
    CharacterParsers
  11. final def choice[F[_], S, C, P, A](ps: List[ParserT[F, S, C, P, A]])(implicit F: Monad[F], P0: Order[P], P1: Show[P]): ParserT[F, S, C, P, A]

    Permalink

    Applies the parsers in the given list in order until one of them succeeds.

    Applies the parsers in the given list in order until one of them succeeds. Returns the result of a parser which succeeded.

    Definition Classes
    Combinators
  12. final def choice[F[_], S, C, P, A](ps: ParserT[F, S, C, P, A]*)(implicit F: Monad[F], P0: Order[P], P1: Show[P]): ParserT[F, S, C, P, A]

    Permalink

    Applies the given parsers in order until one of them succeeds.

    Applies the given parsers in order until one of them succeeds. Returns the result of a parser which succeeded.

    Definition Classes
    Combinators
  13. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  14. final def count[F[_], S, C, P, A](n: Int, p: ParserT[F, S, C, P, A])(implicit F: Monad[F], P0: Order[P], P1: Show[P]): ParserT[F, S, C, P, List[A]]

    Permalink

    Applies parser p exactly n times.

    Applies parser p exactly n times. Returns empty list if the n is less than or equals to zero, otherwise returns a list of n values produced by parser p.

    Definition Classes
    Combinators
  15. lazy val crlf: TextParser[Char]

    Permalink

    Parses a '\r' character followed by a newline character.

    Parses a '\r' character followed by a newline character. Returns a newline character.

    Definition Classes
    CharacterParsers
  16. lazy val digit: TextParser[Char]

    Permalink

    Parses and returns a digit ('0' - '9').

    Parses and returns a digit ('0' - '9').

    Definition Classes
    CharacterParsers
  17. lazy val eol: TextParser[Char]

    Permalink

    The parser which succeeds if the end of line occurs.

    The parser which succeeds if the end of line occurs. Returns a newline character.

    Definition Classes
    CharacterParsers
  18. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  20. def finalize(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  23. final def ifThen[F[_], S, C, P, A, B](if: ParserT[F, S, C, P, A], then: ⇒ ParserT[F, S, C, P, B])(implicit F: Monad[F], P0: Order[P], P1: Show[P]): ParserT[F, S, C, P, B]

    Permalink

    Applies parser then and returns its result only if the parser if succeeds, otherwise the result of the parser if is returned.

    Applies parser then and returns its result only if the parser if succeeds, otherwise the result of the parser if is returned.

    Definition Classes
    Combinators
  24. final def ifThenElse[F[_], S, C, P, A, B](if: ParserT[F, S, C, P, A], then: ⇒ ParserT[F, S, C, P, B], else: ⇒ ParserT[F, S, C, P, B])(implicit F: Monad[F], P0: Order[P], P1: Show[P]): ParserT[F, S, C, P, B]

    Permalink

    Applies parser then and returns its result only if the parser if succeeds, otherwise the result of the parser else is returned.

    Applies parser then and returns its result only if the parser if succeeds, otherwise the result of the parser else is returned.

    Definition Classes
    Combinators
  25. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  26. lazy val letter: TextParser[Char]

    Permalink

    Parses and returns a letter.

    Parses and returns a letter.

    Definition Classes
    CharacterParsers
  27. lazy val lower: TextParser[Char]

    Permalink

    Parses and returns a lower case letter.

    Parses and returns a lower case letter.

    Definition Classes
    CharacterParsers
  28. final def many[F[_], S, C, P, A](p: ParserT[F, S, C, P, A])(implicit F: Monad[F], P0: Order[P], P1: Show[P]): ParserT[F, S, C, P, List[A]]

    Permalink

    Applies the given parser zero or more times.

    Applies the given parser zero or more times.

    Definition Classes
    Combinators
  29. final def many1[F[_], S, C, P, A](p: ParserT[F, S, C, P, A])(implicit F: Monad[F], P0: Order[P], P1: Show[P]): ParserT[F, S, C, P, List[A]]

    Permalink

    Applies the given parser one or more times.

    Applies the given parser one or more times.

    Definition Classes
    Combinators
  30. final def manyTill[F[_], S, C, P, A, E](p: ParserT[F, S, C, P, A], end: ParserT[F, S, C, P, E])(implicit F: Monad[F], P0: Order[P], P1: Show[P]): ParserT[F, S, C, P, List[A]]

    Permalink

    Applies parser p zero or more times until parser end succeeds.

    Applies parser p zero or more times until parser end succeeds. Returns the list of values produced by p.

    Definition Classes
    Combinators
  31. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  32. lazy val newline: TextParser[Char]

    Permalink

    Parses and returns a newline character.

    Parses and returns a newline character.

    Definition Classes
    CharacterParsers
  33. final def noneOf(str: List[Char]): TextParser[Char]

    Permalink

    Parses and returns any character that is NOT present in the given list.

    Parses and returns any character that is NOT present in the given list.

    Definition Classes
    CharacterParsers
  34. final def noneOf(str: String): TextParser[Char]

    Permalink

    Parses and returns any character that is NOT present in the given string.

    Parses and returns any character that is NOT present in the given string.

    Definition Classes
    CharacterParsers
  35. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  37. final def oneOf(str: List[Char]): TextParser[Char]

    Permalink

    Parses and returns any character that is present in the given list.

    Parses and returns any character that is present in the given list.

    Definition Classes
    CharacterParsers
  38. final def oneOf(str: String): TextParser[Char]

    Permalink

    Parses and returns any character that is present in the given string.

    Parses and returns any character that is present in the given string.

    Definition Classes
    CharacterParsers
  39. final def option[F[_], S, C, P, A](a: A, p: ParserT[F, S, C, P, A])(implicit F: Monad[F], P0: Order[P], P1: Show[P]): ParserT[F, S, C, P, A]

    Permalink

    Tries to apply parser p and returns the value a if the operation was unsuccessful.

    Tries to apply parser p and returns the value a if the operation was unsuccessful.

    Definition Classes
    Combinators
  40. final def optionMaybe[F[_], S, C, P, A](p: ParserT[F, S, C, P, A])(implicit F: Monad[F], P0: Order[P], P1: Show[P]): ParserT[F, S, C, P, Option[A]]

    Permalink

    Tries to apply parser p.

    Tries to apply parser p. Returns Some containing a result or None if the parsing failed.

    Definition Classes
    Combinators
  41. final def optional[F[_], S, C, P, A](p: ParserT[F, S, C, P, A])(implicit F: Monad[F], P0: Order[P], P1: Show[P]): ParserT[F, S, C, P, Unit]

    Permalink

    Applies the given parser once and ignores its result regardless of whether it was a success or not.

    Applies the given parser once and ignores its result regardless of whether it was a success or not.

    Definition Classes
    Combinators
  42. final def orElse[F[_], S, C, P, A, B >: A](p1: ParserT[F, S, C, P, A], p2: ⇒ ParserT[F, S, C, P, B])(implicit F: Monad[F], P0: Order[P], P1: Show[P]): ParserT[F, S, C, P, B]

    Permalink

    Returns the result produced by the parser p1 if it succeeds, otherwise returns the result of the parser p2 instead.

    Returns the result produced by the parser p1 if it succeeds, otherwise returns the result of the parser p2 instead.

    Definition Classes
    Combinators
  43. final def parseText[A](parser: TextParser[A], text: PagedStream[Char]): Either[ParseError[TextPosition], A]

    Permalink
    Definition Classes
    CharacterParsers
  44. final def parseText[A](parser: TextParser[A], text: PagedStream[Char], info: String): Either[ParseError[TextPosition], A]

    Permalink
    Definition Classes
    CharacterParsers
  45. final def parserTEmpty[F[_], S, C, P, A](implicit F: Monad[F], P0: Order[P], P1: Show[P]): ParserT[F, S, C, P, A]

    Permalink
    Attributes
    protected
    Definition Classes
    Combinators
  46. final def parserTFoldR[F[_], S, C, P, A](ps: Seq[ParserT[F, S, C, P, A]])(implicit F: Monad[F], P0: Order[P], P1: Show[P]): ParserT[F, S, C, P, A]

    Permalink
    Attributes
    protected
    Definition Classes
    Combinators
  47. final def parserTPure[F[_], S, C, P, A](a: A)(implicit F: Monad[F], P0: Order[P], P1: Show[P]): ParserT[F, S, C, P, A]

    Permalink
    Attributes
    protected
    Definition Classes
    Combinators
  48. final def satisfy(p: (Char) ⇒ Boolean): TextParser[Char]

    Permalink

    The parser which succeeds for any character that satisfies the given predicate.

    The parser which succeeds for any character that satisfies the given predicate. Returns the parsed character.

    Definition Classes
    CharacterParsers
  49. final def sepBy[F[_], S, C, A, P, B](p: ParserT[F, S, C, P, A], sep: ParserT[F, S, C, P, B])(implicit F: Monad[F], P0: Order[P], P1: Show[P]): ParserT[F, S, C, P, List[A]]

    Permalink

    Parses zero or more occurrences of parser p separated by sep.

    Parses zero or more occurrences of parser p separated by sep. Returns a list of values produced by parser p.

    Definition Classes
    Combinators
  50. final def sepBy1[F[_], S, C, A, P, B](p: ParserT[F, S, C, P, A], sep: ParserT[F, S, C, P, B])(implicit F: Monad[F], P0: Order[P], P1: Show[P]): ParserT[F, S, C, P, List[A]]

    Permalink

    Parses one or more occurrences of parser p separated by sep.

    Parses one or more occurrences of parser p separated by sep. Returns a list of values produced by parser p.

    Definition Classes
    Combinators
  51. final def skipMany[F[_], S, C, P, A](p: ParserT[F, S, C, P, A])(implicit F: Monad[F], P0: Order[P], P1: Show[P]): ParserT[F, S, C, P, Unit]

    Permalink

    Applies the given parser zero or more times ignoring its result.

    Applies the given parser zero or more times ignoring its result.

    Definition Classes
    Combinators
  52. final def skipMany1[F[_], S, C, P, A](p: ParserT[F, S, C, P, A])(implicit F: Monad[F], P0: Order[P], P1: Show[P]): ParserT[F, S, C, P, Unit]

    Permalink

    Applies the given parser one or more times ignoring its result.

    Applies the given parser one or more times ignoring its result.

    Definition Classes
    Combinators
  53. lazy val space: TextParser[Char]

    Permalink

    Parses and returns a whitespace character.

    Parses and returns a whitespace character.

    Definition Classes
    CharacterParsers
  54. lazy val spaces: TextParser[Unit]

    Permalink

    Skips zero or more whitespace characters.

    Skips zero or more whitespace characters.

    Definition Classes
    CharacterParsers
  55. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  56. lazy val tab: TextParser[Char]

    Permalink

    Parses and returns a tab character.

    Parses and returns a tab character.

    Definition Classes
    CharacterParsers
  57. final def test[F[_], S, C, P, A](p: ParserT[F, S, C, P, A])(implicit F: Monad[F], P0: Order[P], P1: Show[P]): ParserT[F, S, C, P, A]

    Permalink

    Applies the given parser and returns its result while preserving the initial position, input and context.

    Applies the given parser and returns its result while preserving the initial position, input and context.

    Definition Classes
    Combinators
  58. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  59. lazy val upper: TextParser[Char]

    Permalink

    Parses and returns an upper case letter.

    Parses and returns an upper case letter.

    Definition Classes
    CharacterParsers
  60. final def wait(): Unit

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

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

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

Inherited from CharacterParsers

Inherited from Combinators

Inherited from AnyRef

Inherited from Any

Ungrouped