On Fri, 26 Jun 2020, Markus Elfring wrote:
> I assumed that I may omit the semicolon in such a SmPL code.
> Can the specification of a SmPL nest construct ever be sufficient here?
> >>>
> >>> No. <+... ...+> matches a subtree of an AST. For a variable
> >>> initialization, there is
I assumed that I may omit the semicolon in such a SmPL code.
Can the specification of a SmPL nest construct ever be sufficient here?
>>>
>>> No. <+... ...+> matches a subtree of an AST. For a variable
>>> initialization, there is no subtree of the AST that includes both the
>>> right si
On Fri, 26 Jun 2020, Markus Elfring wrote:
> >> I assumed that I may omit the semicolon in such a SmPL code.
> >> Can the specification of a SmPL nest construct ever be sufficient here?
> >
> > No. <+... ...+> matches a subtree of an AST. For a variable
> > initialization, there is no subtree
>> I assumed that I may omit the semicolon in such a SmPL code.
>> Can the specification of a SmPL nest construct ever be sufficient here?
>
> No. <+... ...+> matches a subtree of an AST. For a variable
> initialization, there is no subtree of the AST that includes both the
> right side of an = a
On Fri, 26 Jun 2020, Markus Elfring wrote:
> >> <+... when any
> >> (t2 y = <+...
> >> ( sizeof(*(resource))
> >> |
> >> * *(resource)
> >> ) ...+>
> >
> > You are missing a ; here.
>
> I assumed that I may omit the semicolon in such a SmPL code.
> Can the specification of a
>> <+... when any
>> (t2 y = <+...
>> ( sizeof(*(resource))
>> |
>> * *(resource)
>> ) ...+>
>
> You are missing a ; here.
I assumed that I may omit the semicolon in such a SmPL code.
Can the specification of a SmPL nest construct ever be sufficient here?
Regards,
Markus
__
.+>
>
>
> elfring@Sonne:~/Projekte/Coccinelle/janitor> spatch --parse-cocci
> show_problematic_disjunction-20200626.cocci
> …
> minus: parse error:
> File "show_problematic_disjunction-20200626.cocci", line 14, column 0,
> charpos = 196
> arou
2 y = <+...
( sizeof(*(resource))
|
* *(resource)
) ...+>
|
*action(..., resource, ...)
)
...+>
elfring@Sonne:~/Projekte/Coccinelle/janitor> spatch --parse-cocci
show_problematic_disjunction-20200626.cocci
…
minus: parse error:
File "show_problematic_disjunction-2020
On Fri, 26 Jun 2020, Markus Elfring wrote:
> Hello,
>
> I have tried another tiny script variant out for the semantic patch language
> (according to the software combination “Coccinelle 1.0.8-00131-g675b9670”).
>
> @display@
> expression* x;
> statement is, es;
> @@
> *if (!x)
> is
> else
>
Hello,
I have tried another tiny script variant out for the semantic patch language
(according to the software combination “Coccinelle 1.0.8-00131-g675b9670”).
@display@
expression* x;
statement is, es;
@@
*if (!x)
is
else
es
elfring@Sonne:~/Projekte/Coccinelle/janitor> spatch --parse-
10 matches
Mail list logo