ParserBridge0

parsley.generic.ParserBridge0
trait ParserBridge0[+R] extends ParserSingletonBridge[R]

Generic bridge trait for singleton objects that simply return themselves after running the parser provided to <#.

Attributes

Since

4.0.0

Source
generic.scala
Graph
Supertypes
trait ErrorBridge
class Object
trait Matchable
class Any
Self type
R

Members list

Value members

Concrete methods

final override def con: R

The abstract hook method: what value is the singleton representing?

The abstract hook method: what value is the singleton representing?

Attributes

Definition Classes
Source
generic.scala

Inherited methods

final def <#(op: Parsley[_]): Parsley[A]

The syntax on this implementing type that performs the parser and returns con.

The syntax on this implementing type that performs the parser and returns con.

Value parameters

op

the parser that should be parsed before returning con.

Attributes

Note

equivalent to from.

Inherited from:
ParserSingletonBridge
Source
generic.scala
final protected def error[T](p: Parsley[T]): Parsley[T]

Applies the error components described by labels and reason to the given parser.

Applies the error components described by labels and reason to the given parser.

Attributes

Note

this should be used within a bridge's apply and the from combinator.

Inherited from:
ErrorBridge
Source
generic.scala
final def from(op: Parsley[_]): Parsley[A]

The combinator on this implementing type that performs the parser and returns con.

The combinator on this implementing type that performs the parser and returns con.

Value parameters

op

the parser that should be parsed before returning con.

Attributes

Inherited from:
ParserSingletonBridge
Source
generic.scala
def labels: List[String]

The labels that should be associated with a failure to parse this bridge.

The labels that should be associated with a failure to parse this bridge.

The default, Nil, will not affect the labelling of the original error.

Attributes

Inherited from:
ErrorBridge
Source
generic.scala
def reason: Option[String]

The reason that should be associated with a failure to parse this bridge.

The reason that should be associated with a failure to parse this bridge.

The default, None, will not add any reasons.

Attributes

Inherited from:
ErrorBridge
Source
generic.scala