[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [Q] simple translator from Lua to Java Script and PHP
- From: Fabien <fleutot+lua@...>
- Date: Thu, 30 Oct 2008 20:56:24 +0100
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.