[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Line number info
- From: Ivan Kolev <ikolev@...>
- Date: Thu, 11 Mar 2004 19:10:06 +0200
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.
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