@neutrium/utilities - v5.0.0
    Preparing search index...

    Interface PrattGrammar<T, Node>

    Consumers select parselets by their own token kinds or values; no token naming convention is imposed.

    interface PrattGrammar<T extends SourceSpan, Node> {
        infix?: (token: T) => InfixParselet<T, Node> | undefined;
        prefix: (token: T) => PrefixParselet<T, Node> | undefined;
    }

    Type Parameters

    Index
    infix?: (token: T) => InfixParselet<T, Node> | undefined

    Select a handler that continues an existing expression.

    prefix: (token: T) => PrefixParselet<T, Node> | undefined

    Select a handler for an expression's first token.