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

    Interface StartedNfaBuilder

    An NFA builder that can be consumed to produce one immutable form.

    interface StartedNfaBuilder {
        addState(): StateIndex;
        markAccepting(state: StateIndex): void;
        addEpsilon(from: StateIndex, to: StateIndex): void;
        addTransition(
            from: StateIndex,
            symbol: AlphabetSymbol,
            to: StateIndex,
        ): void;
        build(): Nfa;
    }
    Index
    • Parameters

      Returns void

    • Returns Nfa