@blockchaincommons/envelope-pattern - v1.0.0-beta.2
    Preparing search index...

    Type Alias MetaPattern

    MetaPattern:
        | { type: "Any" }
        | { type: "And"; patterns: readonly Pattern[] }
        | { type: "Or"; patterns: readonly Pattern[] }
        | { type: "Not"; pattern: Pattern }
        | { type: "Search"; pattern: Pattern }
        | { type: "Traverse"; patterns: readonly Pattern[] }
        | { type: "Group"; pattern: Pattern; quantifier: Quantifier }
        | { type: "Capture"; name: string; pattern: Pattern }

    A meta pattern: a combinator over patterns.

    Type Declaration

    • { type: "Any" }
      • Readonlytype: "Any"

        The discriminant.

    • { type: "And"; patterns: readonly Pattern[] }
      • Readonlytype: "And"

        The discriminant.

      • Readonlypatterns: readonly Pattern[]

        The operands, matched in sequence.

    • { type: "Or"; patterns: readonly Pattern[] }
      • Readonlytype: "Or"

        The discriminant.

      • Readonlypatterns: readonly Pattern[]

        The alternatives, each explored.

    • { type: "Not"; pattern: Pattern }
      • Readonlytype: "Not"

        The discriminant.

      • Readonlypattern: Pattern

        The pattern that must not match.

    • { type: "Search"; pattern: Pattern }
      • Readonlytype: "Search"

        The discriminant.

      • Readonlypattern: Pattern

        The pattern tried at every node of the tree.

    • { type: "Traverse"; patterns: readonly Pattern[] }
      • Readonlytype: "Traverse"

        The discriminant.

      • Readonlypatterns: readonly Pattern[]

        The steps, each matched from where the previous one ended.

    • { type: "Group"; pattern: Pattern; quantifier: Quantifier }
      • Readonlytype: "Group"

        The discriminant.

      • Readonlypattern: Pattern

        The repeated pattern.

      • Readonlyquantifier: Quantifier

        How many times, and how eagerly.

    • { type: "Capture"; name: string; pattern: Pattern }
      • Readonlytype: "Capture"

        The discriminant.

      • Readonlyname: string

        The capture name.

      • Readonlypattern: Pattern

        The pattern whose matches are recorded under name.