lua-users home
lua-l archive

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


I think I can do it "online" too, using the luac code as an example how to reach the Proto(type)s of all functions defined in a module, and then collect their lineinfo's.

Thanks,
Ivan


Luiz Henrique de Figueiredo wrote:
Is there a way to collect the numbers of all lines in a lua file, which
have any code associated with them?


If you can do this offline, then use luac:

luac -l bisect.lua | cut -f3 | fgrep '[' | tr -d '[]' | sort -un

--lhf