Package com. github. adriantodt. tartar. api. dsl
Types
Char Predicate
Link copied to clipboard
fun interface CharPredicate
Content copied to clipboard
Represents a predicate (boolean-valued function) of one Char-valued argument.
Grammar Config
Link copied to clipboard
Function which receives a LexerDSL as its receiver.
Grammar DSL
Link copied to clipboard
A builder of com.github.adriantodt.tartar.api.parser.Grammar, as a domain-specific language (DSL).
Infix Function
Link copied to clipboard
typealias InfixFunction<T, E> = ParserContext<T, E>.(E, token: Token<T>) -> E
Content copied to clipboard
Function used by GrammarDSL to configure a com.github.adriantodt.tartar.api.parser.InfixParselet in a functional way.
Lexer Config
Link copied to clipboard
Match Function
Link copied to clipboard
Function which receives a LexerContext as its receiver and a matched Char as its parameter.
Parser Function
Link copied to clipboard
Function which receives a ParserContext as its receiver, and returns a result.
Prefix Function
Link copied to clipboard
typealias PrefixFunction<T, E> = ParserContext<T, E>.(token: Token<T>) -> E
Content copied to clipboard
Function used by GrammarDSL to configure a com.github.adriantodt.tartar.api.parser.PrefixParselet in a functional way.