trait Text extends AnyRef
Text parsers.
- Alphabetic
- By Inheritance
- Text
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
bananas[A](p: ⇒ Parser[A]): Parser[A]
Turns a parser into one that consumes surrounding banana brackets
(||)
-
def
braces[A](p: ⇒ Parser[A]): Parser[A]
Turns a parser into one that consumes surrounding curly braces
{}
-
def
bracket[A, B, C](left: Parser[B], p: ⇒ Parser[A], right: ⇒ Parser[C]): Parser[A]
Consumes
left
andright
, including the trailing and preceding whitespace, respectively, and returns the value ofp
. -
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
envelopes[A](p: ⇒ Parser[A]): Parser[A]
Turns a parser into one that consumes surrounding envelope brackets
[||]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
parens[A](p: ⇒ Parser[A]): Parser[A]
Turns a parser into one that consumes surrounding parentheses
()
-
def
scan[S](s: S)(p: (S, Char) ⇒ Option[S]): Parser[String]
Stateful scanning parser returning a string of all visited chars.
Stateful scanning parser returning a string of all visited chars. Many combinators can be written in terms of
scan
; for instance,take(n)
could be written asscan(n)((m, _) => m > 0 option m - 1)
. -
def
skipWhitespace: Parser[Unit]
Parser that consumes horizontal and vertical whitespace
-
def
squareBrackets[A](p: ⇒ Parser[A]): Parser[A]
Turns a parser into one that consumes surrounding square brackets
[]
-
def
string(s: String): Parser[String]
Parser that matches and returns only
s
. -
def
stringCI(s: String): Parser[String]
Like
string
but case-insensitives
. -
def
stringLiteral: Parser[String]
Quoted strings with control and unicode escapes, Java/JSON style.
Quoted strings with control and unicode escapes, Java/JSON style. *
-
def
stringOf(p: Parser[Char]): Parser[String]
Parser that returns a string of characters matched by
p
. -
def
stringOf1(p: Parser[Char]): Parser[String]
Parser that returns a non-empty string of characters matched by
p
. -
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
take(n: Int): Parser[String]
Parser that returns the next
n
characters as aString
. -
lazy val
takeRest: Parser[List[String]]
Parser that consumes and returns all remaining chunks of input.
-
lazy val
takeText: Parser[String]
Parser that consumes and returns all remaining input.
-
def
takeWhile(p: (Char) ⇒ Boolean): Parser[String]
Parser that returns a string of characters passing the supplied predicate.
Parser that returns a string of characters passing the supplied predicate. Equivalent to but more efficient than
stringOf(elem(p))
. -
def
takeWhile1(p: (Char) ⇒ Boolean): Parser[String]
Parser that returns a non-empty string of characters passing the supplied predicate.
Parser that returns a non-empty string of characters passing the supplied predicate. Equivalent to but more efficient than
stringOf1(elem(p))
. - def takeWith(n: Int, p: (String) ⇒ Boolean, what: ⇒ String = "takeWith(...)"): Parser[String]
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
token[A](p: Parser[A]): Parser[A]
Turns a parser into one that skips trailing whitespace
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )