Attributes
- Companion
- trait
- Experimental
- true
- Source
- lexer.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
LexerCtx.type
Members list
Type members
Classlikes
The default lexer context, composed of the Column and Line tracking fragments.
This is the most commonly used context and provides useful information for error reporting. The text field is inherited from LexerCtx.
position and line are immutable vals of a subtype of Int: Tracking.materialize finds each fragment's given Tracking and threads a fresh copy of this case class through the lexer rather than mutating a field in place. Read them as plain Ints (ctx.line, ctx.position).
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
- Supertypes
-
trait Serializabletrait LexerCtxtrait Selectabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Source
- lexer.scala
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
Default.type
An empty lexer context with no extra state tracking.
An empty lexer context with no extra state tracking.
This is the simplest context that only tracks the remaining text. Use this when you don't need line or position tracking.
Attributes
- Source
- lexer.scala
- Supertypes
-
trait Serializabletrait LexerCtxtrait Selectabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Givens
Givens
Default error handler for any LexerCtx that throws on the first unrecognised character.
Default error handler for any LexerCtx that throws on the first unrecognised character.
Attributes
- Source
- lexer.scala
