Skip to content

Instantly share code, notes, and snippets.

@fasterthanlime
Created November 5, 2014 19:58
Show Gist options
  • Save fasterthanlime/7fddcf459a7352fdb324 to your computer and use it in GitHub Desktop.
Save fasterthanlime/7fddcf459a7352fdb324 to your computer and use it in GitHub Desktop.
// 10 empty lines to highlight the problem.
//
//
//
//
//
//
//
//
// ... there we go.
macro sweet {
rule { _throw $x } => { throw $x; }
}
export sweet;
function problem () { sweet _throw "Hello" }
problem();
@fasterthanlime
Copy link
Author

Built with

sjs -c -m ./smacro.sjs sstack.sjs -o sstack.js

Sweet.js version: 0.7.2

Stack trace:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment