Evolution for data reuse with generic SmPL metavariable types?
Hello!
Metavariables are supported to some degree.
https://gitlab.inria.fr/coccinelle/coccinelle/-/blob/03a1af0a3316ddfc2b54d827b8b9627a841c85c9/docs/manual/cocci_syntax.tex#L209-288
I find that their types can be distinguished by corresponding properties.
1. generic
2. number of items (which can be matched)
Examples:
* statement
* declaration
A declaration can contain the following elements.
+ variable type
+ identifier
+ attributes
+ comments
Thus it would occasionally be helpful if such contents can be reused directly. But there are corresponding data processing constraints involved. These data would only become usable after detection according to a (compound) metavariable type.
How will development interests evolve to improve programming interfaces accordingly?
Regards,
Markus
Quoted 1 line
How will development interests evolve to improve programming interfaces accordingly?
I hope that corresponding development resources can also become more interesting.
Another view might be helpful for affected technical details. There are further case distinctions possible according to the handling of metavariable types.
* Are they converted to tree queries (by the Coccinelle software)?
* Is it distinguished then how many data processing would be relevant for leaf nodes?
https://en.wikipedia.org/wiki/Tree_(abstract_data_type)
Can any confusion be better avoided around variations of query trees?
Regards,
Markus