BAM Weblog

Roy - CLI Compile Browser Modules

Brian McKenna2012-03-25

I've added support for compiling browser modules via the node.js CLI. You can now run:

./roy --browser examples/node_module.roy

And you'll get code just like the Roy compiler generates when running in the browser:

(function() {
console.log((structural.obj.x + structural.obj.y));

I've also cleaned up the module implementation. They are no longer half-implemented as macros. This is mainly so I can add AMD support.

Please enable JavaScript to view the comments powered by Disqus.