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 for arrow functions #84

Open
halex2005 opened this issue Feb 1, 2017 · 1 comment
Open

Support for arrow functions #84

halex2005 opened this issue Feb 1, 2017 · 1 comment
Labels

Comments

@halex2005
Copy link

Hi!
Thanks for great library!
I'd like to contribute to this project and implement arrow functions support.
Can you tell where I can start from to do this? What parts I need to touch to complete this task?

@paulbartrum
Copy link
Owner

Well, you'd need to modify the lexer to recognise -> as a token, then modify the compiler to parse that token and produce a FunctionExpression. The hard part is likely modifying the semantics of this, plus the changes to arguments and new.

PS sorry for the slow response.

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

2 participants