On Wed, 13 Jun 2012, SF Markus Elfring wrote:
> > But when I try to use it , I get error.
> >
> > the screen output:
> > init_defs_builtins: /usr/local/share/coccinelle/standard.h
> > 16 17
> > Fatal error: exception Failure("meta: parse error:
> > = File "c1.cocci", line 2, column 13, charpos = 16
> > around = '~', whole content = declarer xyz ~=
> > MODULE_(?:AUTHOR|DESCRIPTION|LICENSE);
> > ")
> >
> > How can I fix that ?
>
> Would you like to try out the following variant?
>
> @@
> declarer xyz ~= MODULE_(AUTHOR|DESCRIPTION|LICENSE);
> @@
> -xyz(...);
This is still incorrect, because it should be declarer name and not
declarer. To the best of my knowledge, we do not parse regular
expressions. The regular expression languages supported are those of PCRE
and those of the OCaml Str library, depending on how coccinelle is
configured at compile time. The PCRE regular expressions are more
standard, the OCaml ones are more old fashoioned.
julia
>
>
> How do you think about to distinguish between grouping-only/non-capturing
> parentheses and their alternative in the applied regular expression?
> http://blog.getify.com/to-capture-or-not/
>
> http://lists.diku.dk/pipermail/cocci/2012-March/002871.html
> http://article.gmane.org/gmane.comp.version-control.coccinelle/2398/
>
> Regards,
> Markus
> _______________________________________________
> Cocci mailing list
> [email protected]
> http://lists.diku.dk/mailman/listinfo/cocci
> (Web access from inside DIKUs LAN only)
>
_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)