I would try that. - But I need more information about the available
interfaces that are provided by Coccinelle's python API.
I think there is nothing that is useful. The only thing that is useful
are the elements of the position data structure. These are the same as
what you get in ocaml:
type pos = {
current_element : string ;
file : string ;
line : int ;
col : int ;
line_end : int ;
col_end : int ;
}
except that all of the fields are strings. Also, position variables are
arrays, so you would say eg p[0].file.
There is a man page for the ocaml interface: man Coccilib. Such a page
could be made for the python interface as well.
julia
_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)