Parsers

laika.parse.combinator.Parsers
See theParsers companion trait
object Parsers extends Parsers

Attributes

Companion
trait
Source
Parsers.scala
Graph
Supertypes
trait Parsers
class Object
trait Matchable
class Any
Self type
Parsers.type

Members list

Type members

Inherited classlikes

implicit class TryOps[A](t: Try[A])

Provides additional methods to Try via implicit conversion.

Provides additional methods to Try via implicit conversion.

Attributes

Inherited from:
Parsers
Source
Parsers.scala
Supertypes
class Object
trait Matchable
class Any

Value members

Inherited methods

def consumeAll[T](p: Parser[T]): Parser[T]

A parser that succeeds if the specified parser succeeds and all input has been consumed.

A parser that succeeds if the specified parser succeeds and all input has been consumed.

Attributes

Inherited from:
Parsers
Source
Parsers.scala
def failure(msg: String): Parser[Nothing]

A parser that always fails with the specified message.

A parser that always fails with the specified message.

Attributes

Inherited from:
Parsers
Source
Parsers.scala
def lazily[T](p: => Parser[T]): Parser[T]

Constructs a parser lazily, useful when breaking circles in recursive parsing.

Constructs a parser lazily, useful when breaking circles in recursive parsing.

Attributes

Inherited from:
Parsers
Source
Parsers.scala
def lookAhead(offset: Int, value: String): Parser[String]

Attempts to parse the specified literal value at the specified offset behind the current position.

Attempts to parse the specified literal value at the specified offset behind the current position. Never consumes any input.

Attributes

Inherited from:
Parsers
Source
Parsers.scala
def lookAhead[T](offset: Int, p: Parser[T]): Parser[T]

Applies the specified parser at the specified offset behind the current position.

Applies the specified parser at the specified offset behind the current position. Never consumes any input.

Attributes

Inherited from:
Parsers
Source
Parsers.scala
def lookAhead(value: String): Parser[String]

Attempts to parse the specified literal value at the current position.

Attempts to parse the specified literal value at the current position. Never consumes any input.

Attributes

Inherited from:
Parsers
Source
Parsers.scala
def lookAhead[T](p: Parser[T]): Parser[T]

Applies the specified parser at the current position.

Applies the specified parser at the current position. Never consumes any input.

Attributes

Inherited from:
Parsers
Source
Parsers.scala
def lookBehind[T](offset: Int, parser: => Parser[T]): Parser[T]

Applies the specified parser at the specified offset behind the current position.

Applies the specified parser at the specified offset behind the current position. Never consumes any input.

Attributes

Inherited from:
Parsers
Source
Parsers.scala
def not(value: String): Parser[Unit]

A parser that only succeeds if parsing the specified literal value fails and vice versa, it never consumes any input.

A parser that only succeeds if parsing the specified literal value fails and vice versa, it never consumes any input.

Attributes

Inherited from:
Parsers
Source
Parsers.scala
def not[T](p: Parser[T]): Parser[Unit]

A parser that only succeeds if the specified parser fails and vice versa, it never consumes any input.

A parser that only succeeds if the specified parser fails and vice versa, it never consumes any input.

Attributes

Inherited from:
Parsers
Source
Parsers.scala
def opt(value: String): Parser[Option[String]]

A parser for an optional literal string that always succeeds.

A parser for an optional literal string that always succeeds.

If the underlying parser succeeds this parser will contain its result as a Some, if it fails this parser will succeed with a None.

Attributes

Inherited from:
Parsers
Source
Parsers.scala
def opt[T](p: Parser[T]): Parser[Option[T]]

A parser for an optional element that always succeeds.

A parser for an optional element that always succeeds.

If the underlying parser succeeds this parser will contain its result as a Some, if it fails this parser will succeed with a None.

Attributes

Inherited from:
Parsers
Source
Parsers.scala
def success[T](v: T): Parser[T]

A parser that always succeeds with the specified value.

A parser that always succeeds with the specified value.

Attributes

Inherited from:
Parsers
Source
Parsers.scala

Implicits

Inherited implicits

final implicit def TryOps[A](t: Try[A]): TryOps[A]

Provides additional methods to Try via implicit conversion.

Provides additional methods to Try via implicit conversion.

Attributes

Inherited from:
Parsers
Source
Parsers.scala