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

    Type Alias GrammarCombinator<R, P>

    GrammarCombinator: {
        [O in GrammarOp]: CombinatorBase & { op: O } & OpNodeShapes<R, P>[O]
    }[GrammarOp] & {
        ___params_nonexistent_at_runtime?: P;
        ___rules_nonexistent_at_runtime?: R;
    }

    A single grammar node. Combinators are plain serializable data (no functions), so grammars can be built, inspected, and patched as values. Each operation has its own subtype with explicitly named fields; the per-operation definitions (how a node is created, parsed, hashed, and rendered) live together in the opDefs table below.

    Type Parameters

    • R extends string
    • P extends string

    Type Declaration

    • Optional Readonly___params_nonexistent_at_runtime?: P
    • Optional Readonly___rules_nonexistent_at_runtime?: R

      Phantom brands (never set at runtime): the rule names this combinator tree can invoke, and the parameter names it can reference. They live at the top level, outside the per-operation union, because TypeScript gets very confused when you try to have it infer recursively into union members.