@r47onfire/nebula - v0.0.0
    Preparing search index...

    Interface OpNodeShapes<R, P>

    The fields of every operation's node, one entry per operation. This is a separate interface (rather than being inferred from the shape of opDefs) because Typescript is stupid and can't infer it from the shape of opDefs.

    interface OpNodeShapes<R extends string, P extends string> {
        adopt: { child: GrammarCombinator<R, P> };
        alternatives: {
            first?: boolean;
            options: readonly GrammarCombinator<R, P>[];
        };
        ambient: { default: GrammarCombinator<R, P>
        | undefined; name: string };
        bind: {
            body: GrammarCombinator<R, P>;
            extend: boolean;
            name: string;
            value: GrammarCombinator<R, P>;
        };
        cut: { depth: number };
        die: { message: string };
        donate: { child: GrammarCombinator<R, P> };
        if: {
            condition: GrammarCombinator<R, P>;
            ifFalse: GrammarCombinator<R, P>;
            ifTrue: GrammarCombinator<R, P>;
        };
        ignored: { child: GrammarCombinator<R, P> };
        joined: {
            element: GrammarCombinator<R, P>;
            joiner: GrammarCombinator<R, P>;
            require2: boolean;
            trailing: boolean;
        };
        keyword: { options: readonly string[]; tag: string };
        literal: { pattern: string | readonly [string, string] };
        lookahead: { child: GrammarCombinator<R, P>; positive: boolean };
        nonempty: { child: GrammarCombinator<R, P> };
        nothing: void;
        opsym: { sym: string; tag: string };
        optional: { child: GrammarCombinator<R, P> };
        param: { default: GrammarCombinator<R, P> | undefined; name: P };
        repeat: { items: readonly GrammarCombinator<R, P>[]; required: boolean };
        rule: { args: readonly GrammarCombinator<R, P>[]; name: R };
        sameline: { child: GrammarCombinator<R, P> };
        sequence: {
            items: readonly GrammarCombinator<R, P>[];
            separator: GrammarCombinator<R, P> | undefined;
        };
        tag: { child: GrammarCombinator<R, P>; tag: string };
        try: { child: GrammarCombinator<R, P> };
    }

    Type Parameters

    • R extends string
    • P extends string
    Index
    adopt: { child: GrammarCombinator<R, P> }
    alternatives: { first?: boolean; options: readonly GrammarCombinator<R, P>[] }
    ambient: { default: GrammarCombinator<R, P> | undefined; name: string }
    bind: {
        body: GrammarCombinator<R, P>;
        extend: boolean;
        name: string;
        value: GrammarCombinator<R, P>;
    }
    cut: { depth: number }
    die: { message: string }
    donate: { child: GrammarCombinator<R, P> }
    if: {
        condition: GrammarCombinator<R, P>;
        ifFalse: GrammarCombinator<R, P>;
        ifTrue: GrammarCombinator<R, P>;
    }
    ignored: { child: GrammarCombinator<R, P> }
    joined: {
        element: GrammarCombinator<R, P>;
        joiner: GrammarCombinator<R, P>;
        require2: boolean;
        trailing: boolean;
    }
    keyword: { options: readonly string[]; tag: string }
    literal: { pattern: string | readonly [string, string] }
    lookahead: { child: GrammarCombinator<R, P>; positive: boolean }
    nonempty: { child: GrammarCombinator<R, P> }
    nothing: void
    opsym: { sym: string; tag: string }
    optional: { child: GrammarCombinator<R, P> }
    param: { default: GrammarCombinator<R, P> | undefined; name: P }
    repeat: { items: readonly GrammarCombinator<R, P>[]; required: boolean }
    rule: { args: readonly GrammarCombinator<R, P>[]; name: R }
    sameline: { child: GrammarCombinator<R, P> }
    sequence: {
        items: readonly GrammarCombinator<R, P>[];
        separator: GrammarCombinator<R, P> | undefined;
    }
    tag: { child: GrammarCombinator<R, P>; tag: string }
    try: { child: GrammarCombinator<R, P> }