Package com.github.adriantodt.tartar.api.lexer

Types

Lexer
Link copied to clipboard
common
interface Lexer<T>
Reads characters from a Source and outputs tokens.
LexerContext
Link copied to clipboard
common
interface LexerContext<T>
A lexing context, created by a Lexer.parse call, which exposes an interface for advanced lexing.
Section
Link copied to clipboard
common
data class Section(source: Source, lineNumber: Int, lineIndex: Int, length: Int)
Represents a span of characters.
Sectional
Link copied to clipboard
common
interface Sectional
Indicates that a specified object has a section assigned to it.
Source
Link copied to clipboard
common
data class Source(content: String, name: String, path: String)
A source of text to lexers.
StringReader
Link copied to clipboard
class StringReader(s: String)
typealias StringReader = StringReader