How to add a custom operator to Javascript or node.js with BabelJS?

299 views Asked by At

I would like to add custom operators, keywords, and syntax to Javascript.

Someone asked for help with this many years ago and got some great instructions:

How would I extend the JavaScript language to support a new operator?

Implemented here:

https://github.com/IonicaBizau/js-custom-operators

This method does not work with the most current version of esprima.js.

Is this possible with babel.js?

0

There are 0 answers