Skip to content

Latest commit

 

History

History
41 lines (29 loc) · 1.15 KB

index.md

File metadata and controls

41 lines (29 loc) · 1.15 KB
layout
default

Build your dream language

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.

Getting started

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!')

Next steps

  • Learning: read the tutorial or check out the reference.
  • Questions: feel free to open an issue on GitHub with any questions you might have. Folks in the gitter room are also very nice.
  • Contributing: from documentation, website upkeep, bug fixes, and features we'd love your help! See the contributing guide for pointers on how to get involved.