2010/11/24 Frank Shearar frank.shearar@angband.za.org:
On 2010/11/24 00:02, Chris Cunnington wrote:
I think the browser, the DOM, and JavaScript can't be pried apart. The public API to the DOM IS JavaScript, so fighting that is not worth it.
Instead, go with it. Use a translation layer between Smalltalk and the JavaScript.
That means a parser. That means OMeta, because it treats JavaScript as Assembly. And a Smalltalk parser for OMeta has been written. I made a movie about it.
http://www.youtube.com/watch?v=f2dyLKP_xJc
I'd say that the trick would be baking OMeta and the Smalltalk parser into a binary that could be loaded into a browser as a plugin.
Xtreams also has a Javascript parser, which WebVelocity makes extensive use of.
Nicolas Cellier's porting it to Squeak for us. (Nicolas, do you need a hand?)
frank
I don't have time to work on it by now. The PEG part is not ported, but it should be fairly easy (maybe consistency between handling of pragmas has to be checked first). By now I let the repository opened to anyone, if volunteers are interested, I can transfer the admin rights.
Nicolas