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

    Interface PushdownInput<Q, A, G>

    State, input and stack references are inferred only from their declarations.

    interface PushdownInput<
        Q extends NonEmptyNames,
        A extends readonly string[],
        G extends readonly string[],
    > {
        states: Q;
        alphabet: A;
        stackAlphabet: G;
        start: NoInfer<Q[number]>;
        accept: readonly NoInfer<Q[number]>[];
        initialStack: readonly NoInfer<G[number]>[];
        acceptance: ControlAcceptance;
        transitions: readonly PushdownTransition<
            NoInfer<Q[number]>,
            NoInfer<A[number]>,
            NoInfer<G[number]>,
        >[];
    }

    Type Parameters

    • Q extends NonEmptyNames
    • A extends readonly string[]
    • G extends readonly string[]
    Index
    states: Q
    alphabet: A
    stackAlphabet: G
    start: NoInfer<Q[number]>
    accept: readonly NoInfer<Q[number]>[]
    initialStack: readonly NoInfer<G[number]>[]
    acceptance: ControlAcceptance

    Accepting states decide with any final stack, and any state decides with an empty stack.

    transitions: readonly PushdownTransition<
        NoInfer<Q[number]>,
        NoInfer<A[number]>,
        NoInfer<G[number]>,
    >[]