Skip to content

Releases: sweet-js/sweet-core

Infix macros

10 Jan 04:43
Compare
Choose a tag to compare

Infix macros!

macro => {
  rule infix { ($params ...) | { $body ... } } => {
    function ($params ...) { $body ... }
  }
}
var f = (x, y) => { return x + y }

v0.3.2

13 Dec 23:20
Compare
Choose a tag to compare

Macro stepper #160 and letstx #106.

v0.3.1

11 Dec 20:22
Compare
Choose a tag to compare

Fix for #147 and better error handling.

Sweet Gorgia Brown

09 Dec 19:42
Compare
Choose a tag to compare
  • Source maps! Use --sourcemap to generate them.
  • ES6 support! Now you can use let, const, yield etc. in your compiled source.
  • Lots of bugs squashed.

Performance winning

17 Nov 03:19
Compare
Choose a tag to compare

Huge performance win in this version. More to do but a really painful slowdown in #90 has finally been resolved. Also:

  • better handling of comments in macros #122
  • various bugfixes #85, #124, #125

Throw syntax errors with better line number information in macros #116:

macro $test {
  case { _ { $tok ... } } => {
    var tok = #{ $tok ... }
    throwSyntaxError('test', 'Unexpected token', tok);
    return [];
  }
}

$test { foo }

bugfixes

11 Oct 00:40
Compare
Choose a tag to compare
  • Hygiene fix #114
  • Multiple modules #112
  • makeValue works with negative values #111

bugfixes

27 Sep 23:04
Compare
Choose a tag to compare

Fixes #91, #100, #104.

bugfixes

24 Sep 21:45
Compare
Choose a tag to compare

Fixes #97 and #98.

bugfix

21 Sep 19:03
Compare
Choose a tag to compare

Fixing examples on homepage. Fix for multiple cases in rules form d14ea86.

case macros

09 Sep 23:37
Compare
Choose a tag to compare

Case macros #12! Can now write macro definitions with real JavaScript that can manipulate and create syntax.

Lot's of bugs too: #93, #88, #86, #84, #82, #79, #80