Package-level declarations
Types
Link copied to clipboard
Link copied to clipboard
interface Lexer
A scanner that transforms raw string data into a list of token. For instance, the Markdown code Hello _Quarkdown_
is tokenized by its implementation into Hello
, _
, Quarkdown
, _
. See lexing_examples.txt for further information.
Link copied to clipboard
A wrapper of a TokenData that may be parsed in order to extract information. A token can be parsed into a com.quarkdown.core.ast.Node.
Link copied to clipboard
The position of a token within the source code.
Link copied to clipboard
data class TokenData(val text: String, val position: IntRange, val groups: Sequence<String> = emptySequence(), val namedGroups: Map<String, String> = emptyMap(), val walkerResult: WalkerParsingResult<*>? = null)
Data of a single, usually small, substring of the source code that stores a chunk of information. For instance, the Markdown code Hello _Quarkdown_
contains the tokens Hello
, _
, Quarkdown
, _
.