PositionTracking

alpaca.internal.lexer.PositionTracking
See thePositionTracking companion trait

Attributes

Companion
trait
Experimental
true
Source
PositionTracking.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Givens

Givens

OnTokenMatch instance that updates the position after each match.

OnTokenMatch instance that updates the position after each match.

The position is reset to 1 on newlines, otherwise it is incremented by the length of the matched text.

This is automatically composed with other OnTokenMatch instances when the context extends PositionTracking.

Attributes

Source
PositionTracking.scala