Package-level declarations

Types

Link copied to clipboard
interface LexedSource

A tokenized source whose token production may be lazy.

Link copied to clipboard

An immutable, self-contained token and source snapshot.

Link copied to clipboard
interface Source

A possibly partial view of a source document.

Link copied to clipboard
data class SourcePosition(val offset: Int, val line: Int, val column: Int)

A position in the complete input.

Link copied to clipboard
data class SourceSpan(val start: SourcePosition, val endExclusive: SourcePosition)

End-exclusive range in one source.

Link copied to clipboard
class SourceText(val text: String, val id: String? = null, val origin: SourcePosition = SourcePosition(0, 0, 0)) : Source

Immutable source text together with an optional diagnostic identifier.

Link copied to clipboard
data class TokenRange(val startInclusive: Int, val endExclusive: Int)

End-exclusive range of absolute token identifiers in a LexedSource.

Link copied to clipboard
interface TokenStore : Iterable<Token>

An ID-addressable token view.