There is indeed such a field in coccilib/elems.py. I don't know what the purpose
of it is,

Does anybody other know the behaviour for the attribute "ident" that is expected officially?
Does the Coccinelle software forward relevant data there?


but I don't see any reason to remove it either, so if you find it useful,

Is this name stable in your API?

Would a little longer name be more appropriate?


then go ahead and use it.

I have tried it out with a small file export today.


How does the mapping look like for other key words and data types?

I don't know enough python to answer the question.

I hope that your software development partners can clarify the corresponding implementation details better.


You can look at the source code of python/coccilib/elems.py.

I'm sorry that I miss comments in this small source file.
https://github.com/coccinelle/coccinelle/blob/485bce717a659e363d3bb74bf2ff76f1cd3b0ff7/python/coccilib/elems.py

I have got difficulties to extract the intended behaviour from this view.


I don't understand the sense of operate. The ocaml interface gives you access to
the AST.

I find that the specification of SmPL types for metavariables corresponds more to the abstraction levels "abstract semantic graph" and "control flow graph" than "the abstract syntax tree".
Do you see this mapping differently?


So they are necessarily always up to date (unlike our documentation :).

I hope that the other parts can be also completed in the (near) future.

Regards,
Markus
_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)

Reply via email to