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

    Function draftOf

    • Projects a checked model back to a draft, so that a report can carry the model as plain data. A machine is its own draft, because a checked machine has the fields of a draft, so the result shares the frozen data of the model and checks back to an equal machine. A grammar and a regular expression are printed to source text, which writes only what the notation can write. A model that came from source text checks back to an equal model when the text is already in printed form, and the key of the draft of the model that the draft checks to is the key of the draft. An unused declaration, a production id that the notation generates and the order of the alphabet of an expression are not kept otherwise. Printing a regular expression charges Resource.Fuel of budget as printRegex does, and no other model charges it.

      Parameters

      Returns ModelDraft