On Fri, 27 May 2011, Francis Galiegue wrote:

> On Fri, May 27, 2011 at 09:39, Julia Lawall <[email protected]> wrote:
> [...]
> >
> > I don't see the point of allowing =.  If you want f only to be execl, then
> > use execl.
> >
> 
> Symmetry? ;)

In general, information that is used for matching should be in the 
pattern, not in the declaration of the metavariables.  This doesn't really 
seem convenient for negative information though.  Personally, I don't like 
regular expressions, and think one should try to avoid using them.  In 
particular the reduce optimization opportunities, because Coccinelle 
doesn't take them into account when using grep, glimpse, etc.

julia


> > Unfortunately, for this sort of question, you might really want to consult
> > the BNF :)
> >
> 
> I'm still trying to make one of the tools mentioned by Markus Elfring
> work. Not with much success so far, but I haven't tried hard. I really
> can't read BNF :(
> 
> -- 
> Francis Galiegue, [email protected]
> "It seems obvious [...] that at least some 'business intelligence'
> tools invest so much intelligence on the business side that they have
> nothing left for generating SQL queries" (Stéphane Faroult, in "The
> Art of SQL", ISBN 0-596-00894-5)
> 
_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)

Reply via email to