-
Notifications
You must be signed in to change notification settings - Fork 39
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 classes #11
Comments
I did not really need to implement ECMA 6 for my purposes so pyjsparser only fully supports ECMA 5.1, sorry. You can try using my automated translation of esprima.js which supports everything. It is slower than pyjsparser but it works. You have an example at the end of the file. |
I worked in a port of the latest esprima to Python; it's quite fast too and it supports classes and everything esprima does: https://github.com/Kronuz/esprima-python |
@Kronuz Great job! It's great you also included the tests :) I tested my parser mostly as a part of my Js2Py Js interpreter on the ECMA 5.1 test suite. I will link your parser from the readme so that it's easier to find for people that need ECMA 6 parsing support. |
Would you have any time soon to add support for parsing classes:
https://github.com/PiotrDabkowski/pyjsparser/blob/master/pyjsparser/parser.py#L2798
Unfortunately I hit this issue as soon as i gave it a try :(
Thanks!
The text was updated successfully, but these errors were encountered: