sweeten your javascript Compile Eval vim emacs default
x
 
1
/*
2
Welcome to sweet.js!
3
4
You can play around with macro writing here on the left side and
5
your code will automatically be compiled on the right. This page
6
will also save your code to localStorage on every successful
7
compile so feel free to close the page and come back later!
8
*/
9
10
// The `syntax` keyword is used to create and name new macros.
11
syntax inc = function (ctx) {
12
  let x = ctx.next().value;
13
  return #`${x} + 1`;
14
}
15
inc 100
16
1
 
1
100 + 1;
2