Grammar

fun <T, K : Token<T>, E> Grammar(prefix: Map<T, PrefixParselet<T, K, E>>, infix: Map<T, InfixParselet<T, K, E>>)

Parameters

T

The grammar's token type.

E

The grammar's expression result.

prefix

A map of prefix parsers for each token type.

infix

A map of prefix parsers for each token type.