Programming language that compiles to Javascript
Try it out at: http://atennapel.github.io/Wortel
node Wortel
Use setModeEval and setModeParse to switch between eval and compile modes.
node Wortel input.wortel -r
node Wortel input.wortel > output.js
Check the examples directory.
; 99 bottles of beer
!console.log @unlines ~!* 99..0 !? {
0 "0 bottles of beer on the wall\n0 bottles of beer\nbetter go to the store and buy some more."
"{@x} bottle{@?@x{1 @e 's}} of beer on the wall\n{@x} bottle{@?@x{1 @e 's}} of beer\nTake one down, pass it around"
}