Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support pattern matching on LHS of LetStmt #131

Merged
merged 4 commits into from
Jul 27, 2017

Conversation

wilcoxjay
Copy link
Collaborator

Fixes #129.

This PR allows arbitrary case patterns to appear on the LHS of a LetStmt. See #129 for an example.

There is a parsing ambiguity when the LHS is a simple identifier not followed by parens, which we resolve by choosing VarDeclStatement over LetStmt.

@RustanLeino RustanLeino merged commit 536ca27 into master Jul 27, 2017
@RustanLeino RustanLeino deleted the let-stmt-pattern-matching branch July 27, 2017 21:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Inconsistency in allowed LHS between var decl statement and let expression
3 participants