sweet-core

Sweeten your JavaScript.

Github星跟踪图

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

主要指标

概览
名称与所有者sweet-js/sweet-core
主编程语言JavaScript
编程语言JavaScript (语言数: 1)
平台
许可证BSD 2-Clause "Simplified" License
所有者活动
创建于2012-08-01 19:26:02
推送于2017-10-26 12:24:08
最后一次提交2017-08-23 22:28:48
发布数44
最新版本名称v3.0.13 (发布于 )
第一版名称v0.1.1 (发布于 2012-10-31 15:30:10)
用户参与
星数4.6k
关注者数129
派生数211
提交数2.3k
已启用问题?
问题数516
打开的问题数62
拉请求数211
打开的拉请求数4
关闭的拉请求数29
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?