Skip to content

Commit

Permalink
Add support for capturing variables from pattern expressions.
Browse files Browse the repository at this point in the history
This changes the expansion of pattern expressions when used in a labeled
sequence such that the remainder of the sequence is lexically within the
match arm so that the variable is in scope.

Literal expressions are also included for the sake of generating nicer
code by not generating RuleResult in a `match` that is itself
immediately matched upon.

Fixes #227
  • Loading branch information
kevinmehall committed Feb 15, 2021
1 parent 93a327b commit 6ecc6f2
Show file tree
Hide file tree
Showing 4 changed files with 865 additions and 1,595 deletions.
Loading

0 comments on commit 6ecc6f2

Please sign in to comment.