[Cocci] Python binding for expression list
Michael Stefaniuc
mstefani at redhat.com
Thu Feb 9 15:45:07 CET 2012
Hello,
the type of an expression metavariable when passed to python is
<type 'instance'>
but an expression list gets flattened to a string aka
<type 'str'>
Can the expression list be passed instead as a list/array of 'instance'?
That way one could get to the expressions without having to write a
(simplified) C parser in python.
What I'm trying to do is to add additional checks to the Wine debug
functions ERR/FIXME/TRACE/WARN. Those are printf style functions with
varargs. While they do use __attribute__(format) there are stricter
checks that can be done for those. But those require the parsing of the
format string and thus the need to go through python.
thanks
bye
michael
More information about the Cocci
mailing list