All of lore.kernel.org
 help / color / mirror / Atom feed
From: nicolas.palix@imag.fr (Nicolas Palix)
To: cocci@systeme.lip6.fr
Subject: [Cocci] semantic patches for C preprocessing constructs?
Date: Mon, 29 Oct 2012 09:28:00 +0100	[thread overview]
Message-ID: <CAAxaTiNPSj=xexkp90cu-8asVbMxnt04O39hmXrQN4zoZHutgQ@mail.gmail.com> (raw)
In-Reply-To: <508D5711.9060402@users.sourceforge.net>

Hi,

On Sun, Oct 28, 2012 at 5:02 PM, SF Markus Elfring
<elfring@users.sourceforge.net> wrote:
>> Huh?  Coccinelle is written in Ocaml.  Matching C preprocessing code
>> requires pervasive changes to its implementation.  Thus it requires
>> knowing the language in which the code is implemented.
>
> I suggest to raise the abstraction level a bit. I see chances to get some
> contributions then from developers who are still more familiar with other
> programming languages. How do you think about model-driven development?
> Can this software design approach improve idea exchange?
> http://en.wikipedia.org/wiki/Model-driven_engineering

Coccinelle should not become a rosseta stone. There is a language OCaml.
You can script in either Python or OCaml.
If you need to improve Coccinelle, learn OCaml.
If you want to script in *YourFavoriteLanguage*, learn OCaml and add
an extension of it.

Model-driven development will not help you to deal with the legacy
which is in OCaml.

One of the ways to make Coccinelle "language-independant" would be to
add an network API.
Feel free to add it and use it in *YourFavoriteLanguage*. But this
extension must be in OCaml too.

Regards,

>
> Regards,
> Markus
>
> _______________________________________________
> Cocci mailing list
> Cocci at systeme.lip6.fr
> https://systeme.lip6.fr/mailman/listinfo/cocci



-- 
Nicolas Palix

  reply	other threads:[~2012-10-29  8:28 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-24 22:03 [Cocci] spatches for cpp? ron minnich
2012-10-25 11:19 ` Julia Lawall
2012-10-26 10:55   ` [Cocci] semantic patches for C preprocessing constructs? SF Markus Elfring
2012-10-26 13:47     ` Julia Lawall
2012-10-28  9:14       ` SF Markus Elfring
2012-10-28 12:14         ` Julia Lawall
2012-10-28 16:02           ` SF Markus Elfring
2012-10-29  8:28             ` Nicolas Palix [this message]
2012-10-29 11:50               ` [Cocci] Application of model-driven engineering? SF Markus Elfring

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAAxaTiNPSj=xexkp90cu-8asVbMxnt04O39hmXrQN4zoZHutgQ@mail.gmail.com' \
    --to=nicolas.palix@imag.fr \
    --cc=cocci@systeme.lip6.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.