[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: "V S P" <toreason@...>
- Date: Thu, 30 Oct 2008 16:21:51 -0400
Fabien
thank you, I was thinking after I typed my question,
that metalua would be excellent for this, but has a learning
curve (I think in 2-3 days with your help I will get a prototype
going :-) ).
I had difficulties about a month ago getting it to
work on windows (I compiled with VS 2005), you mentioned at the time
that you are working on the improved version (as far as
installation/compilation at least). Did you get at least some of your
updates done?
thanks
On Thu, 30 Oct 2008 20:56:24 +0100, "Fabien" <fleutot+lua@gmail.com>
said:
> As lhf wrote, you probably need to analyze your code at source / AST
> level,
> and the lua compiler won't produce that representation for you. You
> probably
> need metalua for that: it'll present the source as a browsable and
> manipulable tree.
>
> There's a learning curve to overcome (metalua's original main purpose
> isn't
> limited to AST production), but it would take longer to debug your own
> parser than to rely on an existing one, that comes with many code
> analysis
> tools.
>
> -- Fabien.
--
V S P
toreason@fastmail.fm
--
http://www.fastmail.fm - Access all of your messages and folders
wherever you are