Language sugar for JetBrains MPS.
Inspired by Ruby & Python goodies.
string message = "My name is %s, I am %d years old" % "Isaac Newton", 18;
assert message equals "My name is Isaac Newton, I am 18 years old";
int t = 0;
t = 5 if t > 0;
assert t == 0;
int t = 0;
t = 5 unless t == 0;
assert t == 0;
Goto Settings->Global Libraries, create "baseLanguage.sugar" library, pointing to a directory with baseLanguage.sugar.jar and baseLanguage.sugar-src.jar. MPS is somewhat clunky when it comes to libraries, so restart might be needed.
Add "baseLanguage.sugar" to your list of used languages.
To convert existing statement into "unless/if" statement place your cursor AFTER ending semicolon and start typing respective keyword.