On Thu, Nov 24, 2011 at 10:38:34AM +0100, Dimiter Milushev wrote: > Hi all, > > I am new to CIL and still learning, but I have the following question. > Is it possible to use comments to ``direct'' a CIL transformation?
No but you could maybe use pragmas: #pragma somepragma("with", "parameters", 12) The main issue is that they must be at toplevel (see GPragma in Cil.global). They use the same syntax as attributes (which might also be an option if your comments are bound to some variables): http://kerneis.github.com/cil/doc/html/cil/attributes.html#toc7 > I imagine one way is to possibly use CIL on a file that is not preprocessed? > The reason I am asking is that I need a transformation that will keep > some structured comments and be based on them. > Thus I am not interested in dropping all comments, but rather > analyzing them and keeping some of them. > Is this feasible in CIL? No, unfortunately there is no way to keep comments in CIL. Sorry, -- Gabriel ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d _______________________________________________ CIL-users mailing list CIL-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cil-users