I'm brand new to Sweet.js. My first simple macro is the following
macro test {
rule {
$className($entityName)
} => {
function test$className()
{
console.print("$className");
console.print("$entityName");
}
}
}
test me(More)
which produces
function test$className() {
console.print(me);
console.print(More);
}
but I'd like it to produce this:
function testMe() {
console.print("me");
console.print("More");
}
but any variants I've tried for it haven't worked. Any suggestions?