Grammar

fun <T, E> Grammar(prefix: Map<T, PrefixParselet<T, E>>, infix: Map<T, InfixParselet<T, 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.