Skip to contentSkip to conversation

Checking structures for usage of OCaml variables with inherited SmPL data

Cocci Markus Elfring 2 participants 3 messages May 27, 2019

lore
Share & tools
lore
#0 lore raw

Hello,

The semantic patch language supports also the specification and handling of OCaml script rules. Inherited SmPL variables can be connected to corresponding local variable names.

I would appreciate if the determination of the provided data structures can become easier.
* Which data types can become relevant for further data processing?
* Which fields should be picked up for data output?

Regards,
Markus
_______________________________________________
Cocci mailing list
[email protected]
https://systeme.lip6.fr/mailman/listinfo/cocci

#1 lore raw
Quoted 10 lines · Markus Elfring

Hello,

The semantic patch language supports also the specification and handling of OCaml script rules. Inherited SmPL variables can be connected to corresponding local variable names.

I would appreciate if the determination of the provided data structures can become easier.
* Which data types can become relevant for further data processing?
* Which fields should be picked up for data output?

Besides comments, everything is either a string or a position, ie type pos list, where the type pos is found in man Coccilib.

julia
_______________________________________________
Cocci mailing list
[email protected]
https://systeme.lip6.fr/mailman/listinfo/cocci

#2 lore raw
Quoted 2 lines

Besides comments, everything is either a string or a position, ie type pos list, where the type pos is found in man Coccilib.

How do you think about to improve the programming interface descriptions here?

Which data structures would be relevant for the metavariable “identifier”? Do they refer only to the data type “Ast_c.metavar_binding_kind”?

Regards,
Markus
_______________________________________________
Cocci mailing list
[email protected]
https://systeme.lip6.fr/mailman/listinfo/cocci