On Fri, 18 Nov 2016, SF Markus Elfring wrote:
> >> * Would such an inclusion approach trigger special requirements on the > >> position for corresponding initialisation code? > > > > The constraint specification should be a single function call. > > Does the script constraint syntax allow more programming language code there? For all practical purposes, no. Concretely, the script constraint code is initially parsed using a C parser, not a parser for the script language. Function calls, of the form f(a,b,c) are in the intersection of C and the supported scripting languages. > > You can set up your @initialize:python@ code to import whatever you want. > > I would prefer to keep initialisation code for the implementation of the > predicate function closely together with the call of the included > metavariable. You are most welcome to implement in ocaml the lexer and parser for the scripting language of your choice. julia _______________________________________________ Cocci mailing list [email protected] https://systeme.lip6.fr/mailman/listinfo/cocci
