combinator

parsley.implicits.combinator$
object combinator

Provides implicit conversions for parsers into unit parsers, and other implicits involving combinators.

Attributes

Since:

3.0.0

Source:
combinator.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Implicits

Implicits

implicit def voidImplicitly[P](p: P)(implicit con: P => Parsley[_]): Parsley[Unit]

Drops the result of a parser when required by another combinator.

Drops the result of a parser when required by another combinator.

This allows for any value convertible to a parser to have its result set to Unit with the void combinator.

Attributes

P

the type of the value that is convertible to a parser.

con

the witness that the type P is converible to a parser.

p

the parser convertible value that should be converted and voided.

See also:
Note:

this doesn't seem to play nicely with Intellij

Source:
combinator.scala