TOC Toolkit API - v0.1.0
    Preparing search index...

    Interface GrammarInput<V, T>

    A context-free rule has one declared variable on its left side.

    interface GrammarInput<V extends NonEmptyNames, T extends readonly string[]> {
        variables: V;
        terminals: T;
        start: NoInfer<V[number]>;
        productions: readonly {
            lhs: NoInfer<V[number]>;
            rhs: readonly GrammarInputSymbol<NoInfer<V[number]>, NoInfer<T[number]>>[];
        }[];
    }

    Type Parameters

    Index
    variables: V
    terminals: T
    start: NoInfer<V[number]>
    productions: readonly {
        lhs: NoInfer<V[number]>;
        rhs: readonly GrammarInputSymbol<NoInfer<V[number]>, NoInfer<T[number]>>[];
    }[]