SmPL script construction with several initialisation parts
Hello,
The semantic patch language supports also extra data processing by initialisation scripts.
http://coccinelle.lip6.fr/docs/main_grammar003.html
Can such initialisation code be constructed by the specification of several script parts there?
Regards,
Markus
Quoted 8 lines · SF Markus Elfring
Hello,
The semantic patch language supports also extra data processing by initialisation scripts.
http://coccinelle.lip6.fr/docs/main_grammar003.htmlCan such initialisation code be constructed by the specification of several script parts there?
I don't understand the question. If the script language supports includes, then you can put includes in the script code.
julia
Quoted 4 lines
Quoted 2 lines
Can such initialisation code be constructed by the specification of several script parts there?
I don't understand the question.
I suggest to consider corresponding design consequences again.
Quoted 1 line
If the script language supports includes, then you can put includes in the script code.
I imagine that it will be occasionally nicer to avoid the indirect inclusion of another file there.
When will it be more consistent to construct an initialisation script by your host programming language?
Regards,
Markus
Quoted 8 lines · SF Markus Elfring
Quoted 4 lines
Quoted 2 lines
Can such initialisation code be constructed by the specification of several script parts there?
I don't understand the question.
I suggest to consider corresponding design consequences again.
Quoted 6 lines
Quoted 1 line
If the script language supports includes, then you can put includes in the script code.
I imagine that it will be occasionally nicer to avoid the indirect inclusion of another file there.
When will it be more consistent to construct an initialisation script by your host programming language?
No idea what you mean.
julia
Quoted 6 lines
Quoted 6 lines
Quoted 3 lines
Quoted 2 lines
Can such initialisation code be constructed by the specification of several script parts there?
I don't understand the question.
I suggest to consider corresponding design consequences again.
Quoted 6 lines
Quoted 5 lines
Quoted 1 line
If the script language supports includes, then you can put includes in the script code.
I imagine that it will be occasionally nicer to avoid the indirect inclusion of another file there.
When will it be more consistent to construct an initialisation script by your host programming language?No idea what you mean.
Is it easier for you to clarify the use case based on a concrete source code example from the recent development ?Script constraints on meta-variables??
https://github.com/coccinelle/coccinelle/blob/cbc751b30d9e02390d60ebed643c8e4a3fa0bb2b/tests/idcon_python.cocci#L1
If I would like to switch between two constraint specifications there for a function name list selection in a bigger SmPL script template, I am looking for a convenient way to append another bit of initialisation code.
Regards,
Markus