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?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?