Version française
Home     About     Download     Resources     Contact us    
Browse thread
fortran parser
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Nicolas Ratier <nratier@l...>
Subject: Re: fortran parser

To analyse the f77 langage, the scanner part is usually wrote in
C/pascal/... and the parser is wrote with Yacc.

John Levine wrote a while ago (1988) a Fortran subset
parser. It is
available at:

ftp://ftp.iecc.com/pub/file/ftn-grammar.gz

The grammar part can help you (save time) a lot.

> Mon but est de faire une table de dépendence entre les subroutines et
> fonctions pour trouver celles qui ne sont pas (ou plutot plus)
> utilisées.

I think that this kind of tools already exist for f77. Look for the
program 
writen in "Perl" or even f77 to do it. Ecrire la grammaire de f77
pour faire cela et un peu comme enfoncer un clou avec un
marteau-piqueur.

         Amicalement

              Nicolas Ratier