SingleChar

parsley.errors.tokenextractors.SingleChar
See theSingleChar companion object
trait SingleChar

This extractor mixin provides an implementation for ErrorBuilder.unexpectedToken when mixed into an error builder: it will unconditionally report the first character in the remaining input as the problematic token.

Attributes

Since

4.0.0

Note

In the case of unprintable characters or whitespace, this extractor will favour reporting a more meaningful name.

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

Members list

Value members

Concrete methods

final override def unexpectedToken(cs: Iterable[Char], amountOfInputParserWanted: Int, lexicalError: Boolean): Token

Attributes

See also
Definition Classes
Source
SingleChar.scala