[comp.compilers] Looking for a front-end of a FORTRAN-Compiler

griebl@platon.fmi.uni-passau.de (Martin Griebl) (12/07/90)

Hello,

I'm looking for a possibility to parse a FORTRAN-program. I know
already that the program, which is to be parsed, is correct. But
I need an internal representation of such a program so that I can
manipulate it in my way. Therefore I would be pleased if anyone
could tell me from where I can get a front-end of a FORTRAN-77-compiler.
As an alternative for a whole front-end a lex and a yacc file for a 
FORTRAN-parser would do the same job. I hope that I needn't transform a
standard grammar for FORTRAN into yacc-form since this can be much
work. 
Thanks (at least for reading) and Ciao
 
     Martin

--
Martin Griebl , University of Passau, Germany
  E-Mail:       griebl@platon.fmi.uni-passau.de
  Phone :       + 49 - 851 - 70310
[I already suggested that he look at f2c. -John]
-- 
Send compilers articles to compilers@iecc.cambridge.ma.us or
{ima | spdcc | world}!iecc!compilers.  Meta-mail to compilers-request.

mccalpin@perelandra.cms.udel.edu (John D. McCalpin) (12/08/90)

> On 7 Dec 90 13:38:38 GMT, griebl@platon.fmi.uni-passau.de 
  (Martin Griebl) said:

> I'm looking for a possibility to parse a FORTRAN-program. [...]
> I need an internal representation of such a program so that I can
> manipulate it in my way.

For the truly masochistic, one could use TOOLPACK.  TOOLPACK contains
an environment in which to parse FORTRAN codes, manipulate the pieces
and put them back together again.

TOOLPACK is currently available at lavaca.uh.edu, or from your
friendly neighborhood Numerical Algorithms Group (NAG) representative.

--
John D. McCalpin			mccalpin@perelandra.cms.udel.edu
Assistant Professor			mccalpin@brahms.udel.edu
College of Marine Studies, U. Del.	J.MCCALPIN/OMNET
-- 
Send compilers articles to compilers@iecc.cambridge.ma.us or
{ima | spdcc | world}!iecc!compilers.  Meta-mail to compilers-request.