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 Jan 4, 2021
1 parent afa6ee9 commit e2f4b3d
Show file tree
Hide file tree
Showing 4 changed files with 854 additions and 1,613 deletions.
Loading

0 comments on commit e2f4b3d

Please sign in to comment.