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

    toc-toolkit/conversions/regular

    Converts models of other classes into finite-state models of the same language, and an NFA into a right-linear grammar. Each conversion returns the result with a trace of its steps.

    • Boundary summaries. Turns a two-way DFA into a DFA whose states are the summaries of what the machine does at the left boundary of a prefix. A breadth-first search finds the reachable summaries. buildTwoWayDfaTarget builds the same DFA without the frames. (twoWayDfaToDfa, buildTwoWayDfaTarget)
    • Right-moving tape reduction. Turns a Turing machine that never moves left into an NFA by closing over pairs of control and tape symbol. (rightMovingTapeToNfa)
    • Tape window reduction. Turns a machine whose head position is bounded into a DFA over the words up to the window length. (tapeWindowToDfa, TAPE_REDUCTIONS)
    • Regular grammar to NFA. Converts a right-linear or left-linear grammar to an NFA with one state for each variable. (regularGrammarToNfa)
    • Regular components. Converts a grammar whose recursive components are certified regular to an NFA. It finds the dependency components with strongly connected components and builds one template for each. (regularComponentsToNfa)
    • Unary grammar. Builds an NFA from bounded multisets of variables. Its accepted words have the same terminal counts as the grammar, so they are the same words over a unary alphabet. (unaryGrammarToNfa)
    • Strongly regular grammar. Converts a grammar whose recursive components each share a left or right orientation to an NFA. (stronglyRegularToNfa)
    • NFA to right-linear grammar. Writes one variable for each state and one production for each transition. (nfaToRightLinear)
    • Right-linear check. Certifies that a grammar has productions that are a run of terminals followed by at most one variable. (asRightLinear)
    • Frame explanation. Describes a construction frame in words. (explainRegularFrame)
    • Right-linear grammar. A grammar branded as right-linear. (RightLinearGrammar)
    • Construction frames. The retained steps of a translation. (RegularFrame, regularFrameDecoder)
    • Two-way summaries. The summaries of the two-way construction, with a text dump. (TwoWaySummary, TwoWayOutcome, dumpTwoWaySummaries, twoWaySummaryDecoder, twoWayOutcomeDecoder)
    • Enumerations. Name the closed sets of strings that the types and the wire data of the package use. (RegularFrameKind, RegularIssueCode, TwoWayOutcomeKind)