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

    toc-toolkit/machines/turing

    Constructions between Turing machines, grammars and other machine models. Each construction returns a checked result with a trace of its steps.

    • LBA to Turing machine. Shifts the input right by one cell, writes private end markers and copies the transitions of the automaton. (lbaToTm, buildLbaToTm)
    • CFG and PDA to Turing machine. Composes the grammar or pushdown construction with the lift of a bounded automaton to a tape. (cfgToTm, pdaToTm, buildCfgTm, buildPdaTm)
    • Tape to two stacks. Keeps the cells left of the head on one stack and the head cell with the rest on the other. (tmToTwoStack)
    • Two stacks to tape. Simulates both stacks on one tape with tracks for the input and each stack. (twoStackToTm)
    • Tape to queue. Represents the tape as a cyclic word with one delimiter and one marked head cell. (tmToQueue)
    • Queue to tape. Keeps the queue as a compact segment and shifts it during a return sweep. (queueToTm)
    • Unrestricted grammar to Turing machine. Builds a queue recognizer that applies the productions in reverse, from right side to left side, until only the start variable remains, and then converts it to a tape machine. (unrestrictedToTm)
    • Turing machine to unrestricted grammar. Builds a grammar that guesses the input and simulates the machine. (tmToUnrestricted)
    • Derivation search. Searches derivations of a word breadth-first over interned sentential forms. It prunes with a terminal subsequence check when every production allows it and never reports exhaustion as non-derivation. (searchDerivation)
    • Frame explanation. Describes a construction frame in words. (explainTuringFrame)
    • Tape machine builder. Collects the states and rules of a target machine, charges each one and checks the result. (TapeMachineBuilder)
    • Input encoding. The pairs of original and encoded symbols that a construction keeps. (LbaInputEncoding)
    • Construction frames. The retained steps of a construction. (TuringFrame)
    • Derivation search result. Either the shortest replayable derivation, a complete finite exploration without one, or an unknown outcome with its exhaustion. (DerivationSearch)
    • Construction results. The declarations that the tape builder checks and the result of the unrestricted grammar conversion. (TapeMachineParts, UnrestrictedToTmResult)
    • Decoder. Reads a construction frame back from plain data. (turingFrameDecoder)
    • Enumerations. Name the closed sets of strings that the types and the wire data of the package use. (DerivationStatus, TuringFrameKind)