Package risotto is a JavaScript to JavaScript compiler. Risotto's parser and AST is forked from otto. The main motivation behind Risotto is to be used by Gonads, a frontend toolkit that currently compiles JSX and SASS.
Because Risotto uses the stable and mature parser from otto, most of the development happens inside generator. Running go test
there will run all inputn.js in the test directory through Risotto. The output will be compared against the related output file.
(function() {
var i = <div />;
console.log("Hello, world!")
})
(function () {
var i = React.createElement("div", null);
console.log("Hello, world!");
});