alpaca.LexerCtx.Default
See theDefault companion object
final case class Default(var position: Int = ..., var line: Int = ...) extends LexerCtx, PositionTracking, LineTracking
The default lexer context with position and line tracking.
This context tracks:
- The current column position within the line (1-based, resets on newlines)
- The current line number (1-based)
This is the most commonly used context and provides useful information for error reporting. The text field is inherited from LexerCtx.
Value parameters
- line
-
the current line number (1-based)
- position
-
the current column position within the line (1-based)
Attributes
- Companion
- object
- Source
- lexer.scala
- Graph
-
- Supertypes
-
trait Serializabletrait LineTrackingtrait PositionTrackingtrait LexerCtxtrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article
