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

    Interface MachineNotation

    The machine syntax functions are exposed by identity, with their owner's exact types.

    interface MachineNotation {
        parseLabel: (
            draft: AnyMachineDraft,
            ends: TransitionEnds,
            text: string,
            budget: Budget,
            options?: LabelReadOptions,
        ) => LabelParse;
        printLabel: (
            draft: AnyMachineDraft,
            rules: readonly LabelRule[],
            budget: Budget,
        ) => string;
        parseField: (
            draft: AnyMachineDraft,
            field: LabelField,
            text: string,
            budget: Budget,
            options?: LabelReadOptions,
        ) => FieldParse;
        printField: (
            draft: AnyMachineDraft,
            field: LabelField,
            rule: LabelRule,
            budget: Budget,
        ) => string;
        parseLines: (
            draft: AnyMachineDraft,
            text: string,
            budget: Budget,
            options?: TransitionLineOptions,
        ) => LineParse;
        printLines: (
            draft: AnyMachineDraft,
            select: Maybe<readonly `transition:${string}`[]>,
            budget: Budget,
        ) => string;
    }
    Index
    parseLabel: (
        draft: AnyMachineDraft,
        ends: TransitionEnds,
        text: string,
        budget: Budget,
        options?: LabelReadOptions,
    ) => LabelParse

    Type Declaration

    printLabel: (
        draft: AnyMachineDraft,
        rules: readonly LabelRule[],
        budget: Budget,
    ) => string

    Type Declaration

    parseField: (
        draft: AnyMachineDraft,
        field: LabelField,
        text: string,
        budget: Budget,
        options?: LabelReadOptions,
    ) => FieldParse

    Type Declaration

    printField: (
        draft: AnyMachineDraft,
        field: LabelField,
        rule: LabelRule,
        budget: Budget,
    ) => string

    Type Declaration

    parseLines: (
        draft: AnyMachineDraft,
        text: string,
        budget: Budget,
        options?: TransitionLineOptions,
    ) => LineParse

    Type Declaration

    printLines: (
        draft: AnyMachineDraft,
        select: Maybe<readonly `transition:${string}`[]>,
        budget: Budget,
    ) => string

    Type Declaration

      • (
            draft: AnyMachineDraft,
            select: Maybe<readonly `transition:${string}`[]>,
            budget: Budget,
        ): string
      • Groups endpoints by nested identity maps, preserving the first appearance of each displayed arrow.

        Parameters

        Returns string