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

    toc-toolkit

    The synchronous facade over the libraries. It builds checked models from typed literals, runs language operations, and connects the decision scheduler to the procedures and the independent certificate checkers. It holds no worker, transport, filesystem, UI, clock or global cache, and every growing call takes a caller Budget.

    • Builders. Make a checked model from a typed literal, or return located issues. terminal and variable tag the symbols of a grammar literal, and the grammar builder checks the names later. (dfa, nfa, pda, dpda, twoWayDfa, linearBoundedAutomaton, turingMachine, twoStack, queueMachine, grammar, regex, word, terminal, variable)
    • Checking and running. Check a draft, list its issues, print its source and run a model on a word. (check, issuesOf, printSource, run)
    • Narrowing. Tests whether a model is regular or context-free and returns it at the narrower type. (asRegular, asContextFree, asGrammar)
    • Conversion. Routes a model to a target representation through the translation packages, and lists the translations and the language operations on offer. (convert, offeredTranslations, offeredOperations)
    • Language operations. Closure operations on regular and context-free representations, including regular products, quotients, shuffle and terminal maps. (union, concat, star, intersection, difference, complement, reverse, operateBinary, operateUnary, operateMapped)
    • Simplification and analysis. Makes a grammar readable and reports its useful, nullable and finite properties. For regular models, it reports the syntactic monoid size, aperiodicity and star-freeness with power witnesses. (simplify, analyze)
    • Decisions. Asks equivalence, inclusion, emptiness, finiteness, universality, membership and ambiguity, either in one call or as a session that a scheduler advances in steps. FIXED_POLICY is the fixed allocation of the decision procedures. (decide, openDecision, advanceDecision, equivalent, included, empty, finite, universal, member, ambiguous, runProcedure, FIXED_POLICY)
    • Supplied word envelopes. Compares two context-free grammars inside a supplied product of word stars through the inverse homomorphism and regular intersection constructions. The result retains original operands and independently checkable equality or compressed separating evidence. (equivalentInEnvelope)
    • Intermediate forms. Dumps the NFA, DFA, CFG, CNF, GNF, fixed-length slice, canonical LR(1) table, Parikh formula and nested-word forms of a model. (dumpForm, IrForm)
    • Registry. Lists the procedures, their routes and their certificates. (REGISTRY, dumpRegistry)
    • Errors. Expected failures are a TocError that is invalid, declined, exhausted or unsupported. (TocError, TocErrorKind)
    • Enumerations. Name the closed sets of strings that the types and the wire data of the package use. (BuildIssueCode, ControlAcceptance, ExpressionKind, GrammarKind, HeadMove, LanguageOperation, MachineKind, QuestionKind, Resource, RunStatus, SpecialSymbol, StoreFinal, TranslationId, UnsupportedReason)
    • Model accessors. Read the alphabet and the kind of a model. (alphabetOf, kindOf)