Convert CoffeeScript AST to JavaScript code
CoffeeScript provides a way to obtain an AST (abstract syntax tree) from CoffeeScript code. But I can’t seem to find a simple way to then convert the AST into JavaScript. I realize that I can directly convert CoffeeScript to JavaScript – that’s what the CoffeeScript project is all about. But what if I want to get an AST, make some changes to it, then generate JavaScript from that? Or if I want to generate a CoffeeScript compatible AST on the fly (e.g. from a language that I design), then generate JavaScript from that?