From: Eric Hodel Date: 2006-07-06T05:33:41+09:00 Subject: Re: Automatic Ruby to JavaScript conversion On Jul 5, 2006, at 8:30 AM, Paul Battley wrote: > Here's something for the hungry mob to tear apart: automatic Ruby to > JavaScript conversion. It seems somehow wrong, like grafting a pretty > girl's head onto a donkey, but I've done it anyway! Personally, I find JS a pretty awesome language, but I don't write JS the typical way. > It uses Ryan Davis et al's ParseTree and Florian Gro�'s ruby.js for > most of the hard work. It's still very limited, and there are many > warts, not least of which is the requirement for an explicit receiver > on every method. Why aren't you using SexpProcessor? It takes care of all the stuff you've got in #handle and more! Also makes it easy to write tests. You can probably handle :fcall if you have the correct class hierarchy and just use self. -- Eric Hodel - drbrain@segment7.net - http://blog.segment7.net This implementation is HODEL-HASH-9600 compliant http://trackmap.robotcoop.com