I have a very simple sweet.js file I'm trying to compile:
macro @ {
rule {
$exp
}=>{
+ $exp +
}
}
...using this command:
sjs -o out.js my_file.js
But nothing is getting output; the out.js file is created, but it doesn't contain anything. At first I thought it may be any issue with the sweet.js file itself, but when I test it using the sweet.js online editor, it works as expected.
Am I not using the 'sjs' command properly? Is there something else I'm overlooking?