MatchParserDemand

parsley.errors.tokenextractors.MatchParserDemand
See theMatchParserDemand companion object

This extractor mixin provides an implementation for ErrorBuilder.unexpectedToken when mixed into an error builder: it will make a token as wide as the amount of input the parser tried to consume when it failed.

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:
MatchParserDemand.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Value members

Concrete methods

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

Attributes

See also:
Definition Classes
Source:
MatchParserDemand.scala