Hi,
Do you know if there is any proc or easy way to get a list of the names of each proc defined in a tcl library?
For example,
If I have a library called: ..../packages/foo_pkg/tcl/foo_lib.tcl and it contains definitions for N procs :
ad_proc -public foo_proc1 {} {} .
ad_proc -public foo_proc2 {} {} .
ad_proc -private foo_proc3 {} {} .
.....
ad_proc -public foo_proc(N-1) {} {} .
ad_proc -private foo_procN {} {} .
What I would like to do is something like
% set proc_names_list [get_proc_names $library_path_file]
and get this { foo_proc1 foo_proc2 ..... foo_procN }
Any ideas apart of using a regexp or string match?
Thanks =)