From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id RAA11004 for caml-red; Wed, 19 Jul 2000 17:35:25 +0200 (MET DST) Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id LAA02972 for ; Mon, 17 Jul 2000 11:39:31 +0200 (MET DST) Received: from jsbach.univ-fcomte.fr (jsbach.univ-fcomte.fr [195.83.19.68]) by nez-perce.inria.fr (8.10.0/8.10.0) with ESMTP id e6H9dUr05138 for ; Mon, 17 Jul 2000 11:39:31 +0200 (MET DST) Received: from lpmo.univ-fcomte.fr (hidden-user@[10.0.0.253]) by jsbach.univ-fcomte.fr (8.9.3/8.9.3) with ESMTP id LAA32318; Mon, 17 Jul 2000 11:37:54 +0200 Message-ID: <3972D39F.E51B6E9A@lpmo.univ-fcomte.fr> Date: Mon, 17 Jul 2000 11:36:31 +0200 From: Nicolas Ratier Organization: LPMO X-Mailer: Mozilla 4.7 [en] (X11; I; Linux 2.2.13 i586) X-Accept-Language: fr-FR, en MIME-Version: 1.0 To: Patrick Goldbronn - SYSCO CC: "Inria, caml" Subject: Re: fortran parser References: <396DC29C.1E804897@cea.fr> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: weis@pauillac.inria.fr 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