Surely it can be done in a few lines of Perl - Al?
-----Original Message-----
From: Mark Taylor [mailto:[log in to unmask]]
Sent: 12 December 2003 13:37
To: [log in to unmask]
Subject: Re: Fortran and cpp [was Re: AST autoconfed -- try this]
On Fri, 12 Dec 2003, Norman Gray wrote:
...
> I'm inclined to suggest that we just use cpp, and keep out of trouble
> (probably) by sticking to simple use. If that does turn out to be a
> problem, we can investigate using fpp instead.
FWIW I wrote a lex/yacc based Fortran 77 source code parser which is
used in both SCB and the big-datasets project. This enables you
to manipulate fortran source without the kind of cpp surprises
that you mention above. It probably is the best way to tackle
huge volumes of fortran (the whole USSC), but given that the amount
of platform-dependent code is quite small something more off-the-shelf
like cpp/fpp is probably more appropriate.
Mark
--
Mark Taylor Starlink Programmer Physics, Bristol University, UK
[log in to unmask] +44-117-928-8776 http://www.star.bris.ac.uk/~mbt/
|