I'm just starting to learn about Sweet.JS, and was excited to realize it's already built into Visual Studio 2013 Web Essentials.
I decided to first make a macro to shorten anonymous function
s to fn
.
macro fn {
rule {
$params $body
} => {
function $params $body
}
}
Entering this in the online sweet.js editor gives me:
Visual Studio, however, is giving me the a helpful error message of "Unknown error":
I get the same error with any input I've tried, including an empty file, which is bizarre to me. I have no idea where to begin troubleshooting this issue.
At the moment, I don't know what information is relevant, but I'll be happy to edit this question to supply any information you guys need to help!
Thanks!