sweet-core

Sweeten your JavaScript.

Github stars Tracking Chart

Build Status

Join the chat at https://gitter.im/mozilla/sweet.js

Hygienic Macros for JavaScript!

Macros allow you to build the language of your dreams. Sweeten JavaScript by defining new syntax for your code.

Currently, Sweet should be considered experimental and under heavy development (re-development more like). As such, the API will be undergoing a bit of churn until probably the end of the year. So, probably best not to try Sweet in production systems just yet. If you're interested in helping out though we'd love to have you!

Getting started

Install the command line app with npm:

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

Learning More

Main metrics

Overview
Name With Ownersweet-js/sweet-core
Primary LanguageJavaScript
Program languageJavaScript (Language Count: 1)
Platform
License:BSD 2-Clause "Simplified" License
所有者活动
Created At2012-08-01 19:26:02
Pushed At2017-10-26 12:24:08
Last Commit At2017-08-23 22:28:48
Release Count44
Last Release Namev3.0.13 (Posted on )
First Release Namev0.1.1 (Posted on 2012-10-31 15:30:10)
用户参与
Stargazers Count4.6k
Watchers Count129
Fork Count211
Commits Count2.3k
Has Issues Enabled
Issues Count516
Issue Open Count62
Pull Requests Count211
Pull Requests Open Count4
Pull Requests Close Count29
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private