Spanning

parsley.errors.TokenSpan$.Spanning
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.

Attributes

col

the number of columns consumed on the most recent line

line

the number of lines the token passes over

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
Graph
Supertypes
trait Product
trait Equals
class TokenSpan
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product