On Fri, Aug 24, 2012 at 2:36 PM, Arie Middelkoop <[email protected]> wrote:
> On 24/08/12 14:10, Nicolas Palix wrote:
>>
>> Julia/Arie, maybe providing Ast_c manipulation functions and access
>> to the Pretty_print_c would help a lot in such cases.
>
>
> Ocaml scripts should have access to Ast_c and Pretty_print_c. There is at
> least one test in the tests directory that does so.

My script uses Ast_c but I have to embed few functions to manipulate it
in the script. As far as I know, there is no API to easily manipulate
Ast_c objects as Coccinelle does internally.

Concerning the pretty_print_c module, could you point me
to the test file, please ?

Ast_c provides unwrap, str_of_info and str_of_name which will
help in that case but I was looking for the more general pretty printer
which serializes any ast node. I think it is the Pretty_print_c module
which is not mentioned in ocaml/yes_prepare_ocamlcocci.ml.

Regards,

>
> Python scripts have not, and I expect that it's pretty difficult to give
> them access to that functionality...
>
> Arie



-- 
Nicolas Palix
http://www.palix.info/home.html
_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)

Reply via email to