Package com.github.adriantodt.lin.parser.utils

Functions

matchAll
Link copied to clipboard
fun <T, E> ParserContext<T, E>.matchAll(vararg types: T): Boolean
maybeIgnoreNL
Link copied to clipboard
fun ParserContext<TokenType, Node>.maybeIgnoreNL()

This method consumes TokenType.NL tokens to allow some multiline neatness.

parseBlock
Link copied to clipboard
fun ParserContext<TokenType, Node>.parseBlock(smartToExpr: Boolean = true, braceConsumed: Boolean = false): Node?
skipOnlyUntil
Link copied to clipboard
fun ParserContext<TokenType, Node>.skipOnlyUntil(vararg type: TokenType): Boolean