[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [Q] simple translator from Lua to Java Script and PHP
- From: "Javier Guerra" <javier@...>
- Date: Thu, 13 Nov 2008 15:28:15 -0500
On Thu, Nov 13, 2008 at 3:21 PM, Fabien <fleutot+lua@gmail.com> wrote:
> It's not difficult to add support for and/or operators in the translator,
> but as I understood, Vlad only needs to support a limited subset of Lua, and
> quite sensibly didn't focus on things he didn't need.
arguably, it's not too hard to find a limited subset of Lua that
coincides with JavaScript after a few text replacements (begin/end =>
{ } and such)
> Actually, if you plan to write a translator that converges toward full Lua
> support, some architectural choices made by Vlad would be seriously
> unoptimal, although they made sense in his case.
that would be a really amazing project, i guess it would amount to a
full compiler.
--
Javier