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

AlternationPatternNode #349

Open
kddnewton opened this issue Mar 26, 2023 · 0 comments
Open

AlternationPatternNode #349

kddnewton opened this issue Mar 26, 2023 · 0 comments
Labels
Milestone

Comments

@kddnewton
Copy link
Member

Create a new node that replaces the usage of Binary within pattern matching expressions to represent the use of the | operator.

For example:

case foo
in Bar | Baz
end

In the above expression Bar | Baz is set as a Binary in Syntax Tree. Instead, we should have our own node for it.

YARP has: left, right, operator_loc, and location on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant