TokenSpan

parsley.errors.TokenSpan$
See theTokenSpan companion class
object TokenSpan

This object contains the sub-types of TokenSpan.

Attributes

Since

4.0.0

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

Members list

Type members

Classlikes

final case class Spanning(line: Int, col: Int) extends TokenSpan

This span is designed to be used by token extractors that try and parse the remaining input: it indicates the number of lines and columns that were parsed in the process of extracting the token.

This span is designed to be used by token extractors that try and parse the remaining input: it indicates the number of lines and columns that were parsed in the process of extracting the token.

Value parameters

col

the number of columns consumed on the most recent line

line

the number of lines the token passes over

Attributes

Since

4.0.0

Note

Parsley starts at position (1, 1): if the final position after token extraction on residual input was (2, 1) then that token would span 1 line and 0 columns.

Source
TokenSpan.scala
Supertypes
trait Serializable
trait Product
trait Equals
class TokenSpan
class Object
trait Matchable
class Any
Show all
final case class Width(w: Int) extends TokenSpan

This class describes a simple span of w characters.

This class describes a simple span of w characters.

Value parameters

w

the width of the token in UTF-16 characters.

Attributes

Since

4.0.0

Source
TokenSpan.scala
Supertypes
trait Serializable
trait Product
trait Equals
class TokenSpan
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