Line

halotukozak.alpaca.internal.lexer.Line$package.Line
object Line

Attributes

Source
Line.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Line.type

Members list

Value members

Concrete methods

def apply(n: Int): Line

The line number n, e.g. to assign in a rule body: ctx.line = Line(1).

The line number n, e.g. to assign in a rule body: ctx.line = Line(1).

Attributes

Source
Line.scala

Concrete fields

val Start: Line

The line number a fresh context starts on.

The line number a fresh context starts on.

Attributes

Source
Line.scala

Givens

Givens

Advances by the number of \ns in the match, so \r\n and newlines inside a longer match count too.

Advances by the number of \ns in the match, so \r\n and newlines inside a longer match count too.

Attributes

Source
Line.scala