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
Plugin API #1168
Comments
Basic idea: allow sub-parsing functions to be overridden. |
I'd like to close this for now and probably revisit it again in the future. I believe that the most optimal approach to come up with a proper plugin API is by implementing various syntax extensions (see e.g. JSX support in #1467) and then abstracting it properly. This is more pragmatic than defining the plugin interface ahead of time and potentially struggling to use the interface properly. |
@ariya What is the plan for such an API? I noticed people choose Acorn over Esprima because of lack of this option? There doesn't exist many Acorn plugins, but they exist. And also Babylon have a plugin API. I know Babylon API seem to be for internal usage. Not sure there. |
Description will be added later
The text was updated successfully, but these errors were encountered: