-
Notifications
You must be signed in to change notification settings - Fork 3
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 new anonymous function syntax #142
Labels
Milestone
Comments
lucaswerkmeister
added a commit
that referenced
this issue
Sep 17, 2018
Since eclipse-archived/ceylon#7190, an expression like `=>a*b+c` is valid: it is a function expression with zero parameter lists (see also #142). And apparently the parser will parse it as such when asked to parse this code as a (non-lazy) specifier (though I’m not sure why), whereas we actually want this to be parsed as a lazy specifier in this context. We can avoid this by attempting the lazy specifier parse first and falling back to the non-lazy case second. (Even better would be to only call the parser once, but there’s no direct rule for “any specifier”, and I’m not convinced that the alternative – turning the code into a complete example for some other rule, e. g. typedMethodOrAttributeDeclaration – would be better.)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See eclipse-archived/ceylon#7190.
The text was updated successfully, but these errors were encountered: