From: Markus Elfring <Markus.Elfring@web.de>
To: Julia Lawall <julia.lawall@lip6.fr>
Cc: Coccinelle <cocci@systeme.lip6.fr>
Subject: Re: [Cocci] accessing comments
Date: Mon, 27 May 2019 08:45:48 +0200 [thread overview]
Message-ID: <3574d46c-00ce-0f16-3f16-356f696c43eb@web.de> (raw)
In-Reply-To: <alpine.DEB.2.21.1905260153340.2816@hadrien>
> The before, within and after comments are lists of strings.
I got further software development ideas around the provided data structures.
* If you would like to search within the text of multi-line comments
by the means of regular expressions, the list elements need to be
concatenated before.
See also:
Using a match result from an OCaml rule as a SmPL dependency
https://systeme.lip6.fr/pipermail/cocci/2019-May/005889.html
I imagine then that it would occasionally be more convenient to work with
a string directly instead of a list.
* Advanced source code analysis and transformation triggers the need
to manage the provided data exactly. The determination of source code positions
is required then for safe data processing.
Should the programming interface be a class then (which is different from a list)?
Regards,
Markus
_______________________________________________
Cocci mailing list
Cocci@systeme.lip6.fr
https://systeme.lip6.fr/mailman/listinfo/cocci
next prev parent reply other threads:[~2019-05-27 6:46 UTC|newest]
Thread overview: 42+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-22 19:18 [Cocci] accessing comments Julia Lawall
2019-05-23 12:54 ` Markus Elfring
2019-05-23 13:02 ` Julia Lawall
2019-05-23 14:54 ` Markus Elfring
2019-05-23 15:00 ` Julia Lawall
2019-05-23 15:10 ` Markus Elfring
2019-05-23 19:15 ` [Cocci] Development challenges around OCaml usage for SmPL Markus Elfring
2019-05-24 6:09 ` [Cocci] Checking configuration " Markus Elfring
2019-05-24 6:22 ` Julia Lawall
2019-05-24 6:45 ` Markus Elfring
2019-05-24 6:51 ` Julia Lawall
2019-05-24 6:58 ` Markus Elfring
2019-05-24 8:15 ` Markus Elfring
2019-05-24 9:55 ` Julia Lawall
2019-05-24 10:43 ` Markus Elfring
2019-05-24 14:16 ` Markus Elfring
2019-05-25 6:00 ` [Cocci] Changing include parameters for compilation of OCaml code from SmPL scripts Markus Elfring
2019-05-25 12:10 ` [Cocci] accessing comments Markus Elfring
[not found] ` <alpine.DEB.2.21.1905251522470.2799@hadrien>
2019-05-25 13:45 ` Markus Elfring
2019-05-25 23:53 ` Julia Lawall
2019-05-26 7:47 ` Markus Elfring
2019-05-26 7:52 ` Julia Lawall
2019-05-26 8:10 ` Markus Elfring
[not found] ` <alpine.DEB.2.21.1905260509450.2535@hadrien>
2019-05-26 9:19 ` Markus Elfring
2019-05-26 8:10 ` Markus Elfring
2019-05-25 23:54 ` Julia Lawall
2019-05-26 8:00 ` Markus Elfring
[not found] ` <alpine.DEB.2.21.1905261004420.2449@hadrien>
2019-05-26 8:21 ` Markus Elfring
2019-05-27 6:45 ` Markus Elfring [this message]
[not found] ` <0782D580-3DD6-4419-B5E1-C04215FB2E3B@lip6.fr>
2019-05-25 13:00 ` Markus Elfring
[not found] ` <4FE72A81-9D85-4786-898C-A84E2AC5B520@lip6.fr>
2019-05-25 13:35 ` Markus Elfring
2019-05-25 13:41 ` Julia Lawall
2019-05-25 13:56 ` Markus Elfring
2019-05-25 15:20 ` Markus Elfring
2019-05-26 9:13 ` Julia Lawall
2019-05-26 9:27 ` Markus Elfring
2019-05-26 13:05 ` Markus Elfring
[not found] ` <eaae9aa05a338fd694057897d830181d@lip6.fr>
2019-05-26 13:33 ` Markus Elfring
[not found] ` <eed4a908bc3de6baffcca94ffb42b270@lip6.fr>
2019-05-26 14:33 ` Markus Elfring
2019-05-26 16:18 ` Markus Elfring
2019-06-03 16:18 ` [Cocci] Setting the match result by SmPL script rule Markus Elfring
2019-06-02 12:00 ` [Cocci] accessing comments 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=3574d46c-00ce-0f16-3f16-356f696c43eb@web.de \
--to=markus.elfring@web.de \
--cc=cocci@systeme.lip6.fr \
--cc=julia.lawall@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.