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

Fix problem with lambda expressions and macros #5

Merged
merged 1 commit into from
Nov 8, 2018

Conversation

segeljakt
Copy link
Member

@segeljakt segeljakt commented Nov 8, 2018

This PR solves an issue in #2 where the parser always expected valueExpr in the argument position. However, macros should be able to accept lambdas as arguments. Hence, the parser would for example falsely reject:

map([1,2,3], |x| x + 5)

Because |x| x+5 is not a value expression.

@segeljakt segeljakt merged commit 448ef89 into master Nov 8, 2018
@segeljakt segeljakt deleted the klasseg/fix-macro-expr branch November 8, 2018 15:46
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.

None yet

1 participant