Any examples of parser plugins? #15364
-
I'm interested in writing a small new plugin to support a particular, proprietary syntax - for example, variables that start with a new character, like
Thanks for any help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This is a bit difficult. Maybe you can take a look at this. |
Beta Was this translation helpful? Give feedback.
This is a bit difficult.
Babel parser currently does not provide compatibility guarantees internally, and with the support of new syntax, external plugins may be broken at any time.
And currently I don't know of any parser plugins other than forked repositories.
Maybe you can take a look at this.
https://github.com/acornjs/acorn#plugin-developments