Sweet brings the hygienic macros of languages like Scheme and Rust to JavaScript. Macros allow you to sweeten the syntax of JavaScript and craft the language you always wanted.
Install the command line app:
$ npm install -g @sweet-js/cli
Write your sweet code:
syntax hi = function (ctx) {
return #`console.log('hello, world!')`;
}
hi
And compile:
$ sjs my_sweet_code.js
console.log('hello, world!')