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.

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

Members list

Value members

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product