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

    Function matchPattern

    • Finds all of the matches of the pattern and returns (for each match) the bindings and the span.

      Uses a tree-walking version of Thompson's NFA construction internally, for speed.

      Parameters

      • source: readonly Thing<string | ThingType>[]

        Stream of tokens to be fed to the pattern matching.

      • pattern: Thing<pattern>

        A single parsed pattern tree to match against the source.

      • findAll: boolean = true

        Whether to find all matches, if true, or stop early when the leftmost match is found, if false. (Default true)

      Returns MatchResult[]