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

Concise view

Type members

Classlikes

final case class Named(name: String, span: TokenSpan) 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.

Attributes

name

the description of the token

span

the amount of residual input this token ate

Since:

4.0.0

Source:
Token.scala
Graph
Supertypes
trait Product
trait Equals
class Token
class Object
trait Matchable
class Any
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.

Attributes

tok

the input extracted

Since:

4.0.0

Source:
Token.scala
Graph
Supertypes
trait Product
trait Equals
class Token
class Object
trait Matchable
class Any

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