On Mon, 12 Mar 2012, SF Markus Elfring wrote:
Hello!
Coccinelle supports the application of regular expressions at some places. I
would like to clarify their uses in the semantic patch language in
combination with capturing/grouping parentheses.
Can the matched subexpressions be assigned to (meta-)variables so that the
extracted strings can be reused for source code adjustments like identifier
changes?
http://www.regular-expressions.info/brackets.html
No that is not supported. You would have to pass through ocaml or python
in some way.
julia
_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)