-
Notifications
You must be signed in to change notification settings - Fork 19
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
Add support for list comprehensions to parser #119
Conversation
91e2212
to
ec96dbe
Compare
352437d
to
ddafabd
Compare
a2cc0be
to
6f18076
Compare
15a4c3c
to
7593ee9
Compare
0d941e5
to
ed1abb3
Compare
a2e5990
to
1d00295
Compare
44ec2ee
to
2445536
Compare
1d00295
to
9bfac4c
Compare
98f7e0a
to
49bf627
Compare
9bfac4c
to
0a46017
Compare
Based on an example by @bobbinth (in rescue prime constraints), we would need to be able to do something like:
However, the PR in the current form doesn't support these kinds of expressions. I'll update this PR to allow such expressions. Edit: This would be handled in another PR. |
dc8fa06
to
8db9bf4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! Thank you! I did leave one comment inline: basically, not sure if the current implementation is a simplification of where we want to be. Fine if so, but if not - I think we need to have a more general structure which could handle many iterable lists.
5fd2d8d
to
d358bec
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Thank you! I left one small non-blocking comment inline.
d358bec
to
5d30017
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great to me, thank you @tohrnii!
5d30017
to
580e060
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thanks @tohrnii!
Partly addressing #87. This PR adds list comprehension support to the parser. This PR should be merged after #120.