[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Lua to ECMAscript static compiler (or translator)
- From: HyperHacker <hyperhacker@...>
- Date: Sat, 5 Nov 2011 21:05:10 -0600
On Sat, Nov 5, 2011 at 16:26, Maximilian Herkender
> Hi, I wanted to share a Lua-related experiment I've written.
> It works by parsing normal Lua code and wrapping pretty much every Lua
> version of a Lua script. It seems like there's only a handful of Lua
> features that seem to be completely incompatible with this style of
> Still, this is better used as a proof-of-concept rather than a legitimate
> tool. I didn't plan much in advance so it's only clear to me now that it
> something of a dead end. Since it works for what I've been using it for, and
> put it up online for now in case anyone would like to check it out.
I've been curious about the possibility of this for a while. It sounds
like yours even goes as far as to provide JS equivalents of Lua's
standard functions? I had envisioned a tool that would mainly just
local form = document.getElementById('myform')
if foo then form:submit() else doSomethingWith(form) end
and just pretend the browser understood that by translating it to
Sent from my toaster.