KetexToken

fun interface KetexToken

Functions

Link copied to clipboard
open operator fun invoke(): String
Link copied to clipboard
abstract override fun toString(): String

Inheritors

Link copied to clipboard
Link copied to clipboard

Extensions

Link copied to clipboard
infix fun KetexToken.atLeast(min: Int): KetexToken

Appends a minimum quantifier ({3,}) to the current token.

Link copied to clipboard
infix fun KetexToken.between(range: IntRange): KetexToken

Appends a range quantifier ({1,3}) to the current token.

Link copied to clipboard
infix fun KetexToken.count(count: Int): KetexToken

Appends an exact quantifier ({3}) to the current token.

Link copied to clipboard
fun KetexToken.lazy(): KetexToken

Appends a lazy modifier (?) to the previous quantifier.

Link copied to clipboard
fun KetexToken.maybe(): KetexToken

Appends a star quantifier (*) to the current token.

Link copied to clipboard
operator fun KetexToken.not(): KetexToken
Link copied to clipboard
fun KetexToken.option(): KetexToken

Appends an optional quantifier (?) to the current token.

Link copied to clipboard
infix fun KetexToken.or(other: KetexToken): KetexToken

Appends an alternation token (|) to the current token.

Link copied to clipboard
fun KetexToken.some(): KetexToken

Appends a plus quantifier (+) to the current token.