TillNextWhitespace

parsley.errors.tokenextractors.TillNextWhitespace
See theTillNextWhitespace companion object

This extractor mixin provides an implementation for ErrorBuilder.unexpectedToken when mixed into an error builder: it will construct a token that extends to the next available whitespace in the remaining input. It can be configured to constrict this token to the minimum of the next whitespace or whatever the parser demanded (see MatchParserDemand).

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

Members list

Concise view

Value members

Abstract methods

Should tokens be trimed to only be as wide as either the next whitespace or the amount of input the parser tried to consumed, whichever is smaller?

Should tokens be trimed to only be as wide as either the next whitespace or the amount of input the parser tried to consumed, whichever is smaller?

Attributes

Since:

4.0.0

Source:
TillNextWhitespace.scala

Concrete methods

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

Attributes

See also:
Definition Classes
Source:
TillNextWhitespace.scala