Parser

object Parser
Companion
class
trait Sum
trait Mirror
class Object
trait Matchable
class Any

Type members

Classlikes

enum Result[+A]

The result type for a Parser

The result type for a Parser

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Inherited from
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Inherited from
Mirror

Value members

Concrete methods

def char(char: Char): Parser[Char]

Parse the given character.

Parse the given character.

def charWhere(predicate: Char => Boolean): Parser[Char]

Parse a single character if the predicate is true.

Parse a single character if the predicate is true.

def charsThroughRegexOrEnd(regex: Regex): Parser[String]

Parse one or more characters through the first match of the regular expression or the end of the input

Parse one or more characters through the first match of the regular expression or the end of the input

def charsThroughTerminator(terminators: String*): Parser[String]

Parse one or more characters through the first example of one of the terminators

Parse one or more characters through the first example of one of the terminators

def charsThroughTerminatorOrEnd(terminators: String*): Parser[String]

Parse one or more characters through the first example of one of the terminators or the end of the input

Parse one or more characters through the first example of one of the terminators or the end of the input

def charsUntil(predicate: Char => Boolean): Parser[String]

Parse one or more characters until the predicates is true.

Parse one or more characters until the predicates is true.

def charsUntilRegexOrEnd(regex: Regex): Parser[String]

Parse one or more characters until the first match of the regular expression or the end of the input

Parse one or more characters until the first match of the regular expression or the end of the input

def charsUntilTerminator(terminators: String*): Parser[String]

Parse one or more characters until the first example of one of the terminators

Parse one or more characters until the first example of one of the terminators

def charsUntilTerminatorOrEnd(terminators: String*): Parser[String]

Parse one or more characters until the first example of one of the terminators or the end of the input

Parse one or more characters until the first example of one of the terminators or the end of the input

def charsWhile(predicate: Char => Boolean): Parser[String]

Parses one or more characters while the predicate succeeds.

Parses one or more characters while the predicate succeeds.

def oneOf[A](parsers: List[Parser[A]]): Parser[A]

Parse in order

Parse in order

def string(string: String): Parser[String]

Parse exactly the given string

Parse exactly the given string

def stringIn(strings: Iterable[String]): Parser[String]

Parse the longest matching string amongst the given strings

Parse the longest matching string amongst the given strings

Concrete fields

val end: Parser[String]

Matches the end of the input

Matches the end of the input