On Wed, Mar 11, 2009 at 01:30:45PM +0000, Samin Ishtiaq wrote: > I run this function after cpp, and before I call Frontc.parse, > to remove these annotations: > > --- snip ---
If you go for the "find-replace" approach the freaky directives could be translated into gcc attributes ("__attribute__((...))"). CIL is very good at analyzing these. Moreover, you would not throw away information. OTOH, writing up a set of robust regular expressions (with sed, Perl, flex) for transformations like this is pretty tough in the general case. Been there, done that, got burnt more than once... /Chris ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com _______________________________________________ CIL-users mailing list CIL-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cil-users