From: julia.lawall@lip6.fr (Julia Lawall) Date: Sat, 6 Jan 2018 18:59:20 +0100 (CET) Subject: [Cocci] Automatic generation of SmPL rules by a script rule In-Reply-To: References: <5fb3bd3a-d78d-7d2c-050f-146887838d95@users.sourceforge.net> Message-ID: To: cocci@systeme.lip6.fr List-Id: cocci@systeme.lip6.fr On Sat, 6 Jan 2018, SF Markus Elfring wrote: > > Well, I was thinking that you could eg make a script like: > > > > @script:ocaml@ > > e << r.e; > > @@ > > > > Printf.printf "@@\n"; > > Printf.printf "expression f;\n"; > > Printf.printf "@@\n\n"; > > Printf.printf "-f(%s);\n" e > > I would prefer to use the available programming languages directly > instead of starting the spatch program for such file generation. > > > > But I'm not sure that the parser of script code would be happy with a @ in > > the script code, so you would have to do some trick to get around that. > > Would you like to continue the clarification for the topic ?Configuration > or escaping of @ characters for embedded programming language scripts?? > https://github.com/coccinelle/coccinelle/issues/36 > > > > I'm not interested in spending time on it in the foreseeable future. > > But I imagine that I would like to show related update suggestions > around SmPL scripts because of other approaches then. > Will alternatives become useful? > > > > If anyone else wants to, the code is there... > > Would you like to point any specific source files out for the current > intermediate development status? Files that contain the word Generated. The file parsing_c/unparse_hrule.ml. julia