SourceRange

data class SourceRange(val start: Int, val end: Int)

A half-open source range [start, end) in the original character input.

Every Lexeme carries a SourceRange so that downstream stages (lexer, parser, highlighter) can map any token back to exact character positions without source maps or position-shifting.

Constructors

Link copied to clipboard
constructor(start: Int, end: Int)

Properties

Link copied to clipboard
val end: Int
Link copied to clipboard
val length: Int
Link copied to clipboard
val start: Int