Token

parsley.errors.Token
See theToken companion class
object Token

This object contains the sub-types of Token.

Attributes

Since

4.0.0

Companion
class
Source
Token.scala
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Token.type

Members list

Type members

Classlikes

final case class Named(name: String, caretWidth: Int) extends Token

This is a token that has been given a name, and is treated like a labelled item.

This is a token that has been given a name, and is treated like a labelled item.

Value parameters

caretWidth

the amount of residual input this token ate

name

the description of the token

Attributes

Since

4.0.0

Source
Token.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Token
class Object
trait Matchable
class Any
Show all
final case class Raw(tok: String) extends Token

This is a token that is directly extracted from the residual input itself.

This is a token that is directly extracted from the residual input itself.

Value parameters

tok

the input extracted

Attributes

Since

4.0.0

Source
Token.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Token
class Object
trait Matchable
class Any
Show all

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
Source
Mirror.scala

The name of the type

The name of the type

Attributes

Inherited from:
Mirror
Source
Mirror.scala