lua-users home
lua-l archive

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


On Sun, Jan 17, 2010 at 7:51 PM, Rob Kendrick <rjek@rjek.com> wrote:
> I can't see how this can work at all.  It'd be difficult enough
> calculating what a module exposes by parsing its source (assuming its
> source is written in Lua, of course!).

Lua is very straightforward to parse. You could use a regular
expression and find out pretty much all the static functions exported
by a module.  It doesn't have to be 100%, as long as it has the
honesty to say 'I don't know' rather than inventing some definition ;)

But, methods are hard ...