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

    Interface TwoWayDfaInput<Q, A, G>

    Read-only marked tape; each constructed operation writes exactly its read symbol.

    interface TwoWayDfaInput<
        Q extends NonEmptyNames,
        A extends readonly string[],
        G extends readonly string[],
    > {
        states: Q;
        alphabet: A;
        tapeAlphabet: G;
        start: NoInfer<Q[number]>;
        accept: readonly NoInfer<Q[number]>[];
        reject: readonly NoInfer<Q[number]>[];
        transitions: readonly {
            from: NoInfer<Q[number]>;
            to: NoInfer<Q[number]>;
            read: Marker | NoInfer<G[number]>;
            move: HeadMove;
        }[];
    }

    Type Parameters

    • Q extends NonEmptyNames
    • A extends readonly string[]
    • G extends readonly string[]

    Hierarchy (View Summary)

    Index
    states: Q
    alphabet: A
    tapeAlphabet: G
    start: NoInfer<Q[number]>
    accept: readonly NoInfer<Q[number]>[]
    reject: readonly NoInfer<Q[number]>[]
    transitions: readonly {
        from: NoInfer<Q[number]>;
        to: NoInfer<Q[number]>;
        read: Marker | NoInfer<G[number]>;
        move: HeadMove;
    }[]