lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

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.