On Sat, 25 May 2019, Markus Elfring wrote:
> >> “…
> >> let (c1b,c1m,c1a) = List.hd c1 in
> >> …”
> >>
> >>
> >> Can this programming approach result in undesirable data duplication?
> >
> > There is no data duplication.
>
> The involved data structures are unclear at the moment.
>
>
> > Learn about pointers.
>
> How many different pointers will refer to empty strings here?
>
>
>
> >> * Which texts would you expect for your variables “…m”?
> >
> > There is an example:
> >
> > c4b: /* a comment1 */
> > c4m: /*in arglist*/
> > c4a: /* a comment2 */
>
> How would you like to handle source code elements without
> parameter lists?
Parameter lists are irrelevant. That is just an example. As long as the
SmPL token matches more than one token, it is possible that there is a
comment between them.
julia
_______________________________________________
Cocci mailing list
[email protected]
https://systeme.lip6.fr/mailman/listinfo/cocci