Default

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 Serializable
trait LineTracking
trait LexerCtx
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
Source
Product.scala
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product
Source
Product.scala