character

parsley.implicits.character$
object character

Provides implicit conversions for characters and strings into parsers.

The use of char and string can be distracting to the overall structure of the parser with respect to the grammar. This module exposes combinators that can implicitly convert Scala's string and character literals so that they represent parsers. These will not be whitespace sensitive.

Attributes

Since:

3.0.0

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

Members list

Concise view

Implicits

Implicits

implicit def charLift(c: Char): Parsley[Char]

Converts a character literal into a parser that reads that character.

Converts a character literal into a parser that reads that character.

Allows for the implicit application of the char combinator to a character literal.

Attributes

See also:

character.char

Source:
character.scala
implicit def stringLift(str: String): Parsley[String]

Converts a string literal into a parser that reads that string.

Converts a string literal into a parser that reads that string.

Allows for the implicit application of the string combinator to a string literal.

Attributes

See also:

character.string

Source:
character.scala