Delimiter Parser
Types
Functions
Link copied to clipboard
open fun canOpenClose(tokens: TokensCache, left: TokensCache.Iterator, right: TokensCache.Iterator, canSplitText: Boolean): <Error class: unknown class><Boolean, Boolean>
Checks if current token can open or close emphasis based on the current delimiter run.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun isRightFlankingRun(tokens: TokensCache, leftIt: TokensCache.Iterator, rightIt: TokensCache.Iterator): Boolean
Link copied to clipboard
Link copied to clipboard
abstract fun process(tokens: TokensCache, iterator: TokensCache.Iterator, delimiters: MutableList<DelimiterParser.Info>, result: SequentialParser.ParsingResultBuilder)
Receives a list of delimiters collected by scan (contains tokens from all parsers) and creates actual tree nodes from them.
Link copied to clipboard
abstract fun scan(tokens: TokensCache, iterator: TokensCache.Iterator, delimiters: MutableList<DelimiterParser.Info>): Int
Finds all tokens that open or close element represented by this parser. Invoked by EmphasisLikeParser.collectDelimiters.