From: julia.lawall@lip6.fr (Julia Lawall) Date: Sat, 6 Jan 2018 18:01:59 +0100 (CET) Subject: [Cocci] Automatic generation of SmPL rules by a script rule In-Reply-To: References: Message-ID: To: cocci@systeme.lip6.fr List-Id: cocci@systeme.lip6.fr On Sat, 6 Jan 2018, SF Markus Elfring wrote: > Hello, > > Is it possible to generate additional rules for a specific execution environment > of the semantic patch language by an advanced script rule? > > Can a special rule generation be avoided from external software tools? The simplest thing would be to just print the rule you want in a python/ocaml script rule. Some support was added at one point for generating rules based on matches from other rules, but that code has not been maintained, and I don't think it is likely to be updated in the future. julia