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

    Interface PreparedStore<K>

    A store prepared for the search. Its operations are functions over cells.

    interface PreparedStore<K extends StoreKind> {
        initial(input: Word): Cell;
        compile(operation: StoreOperations[K]): StoreStep;
        final(content: Cell): boolean;
        size(content: Cell): number;
        view(content: Cell): StoreViews[K];
    }

    Type Parameters

    Index
    • The content at the start of a run on input. The stack and the queue ignore the word.

      Parameters

      Returns Cell

    • Whether the content allows acceptance.

      Parameters

      Returns boolean

    • The number of symbols that the content holds.

      Parameters

      Returns number

    • The data that a trace shows for the content.

      Parameters

      Returns StoreViews[K]