* fortran parser @ 2000-07-13 13:22 Patrick Goldbronn - SYSCO 2000-07-17 9:36 ` Nicolas Ratier 2000-07-19 19:58 ` Xavier Leroy 0 siblings, 2 replies; 4+ messages in thread From: Patrick Goldbronn - SYSCO @ 2000-07-13 13:22 UTC (permalink / raw) To: Inria, caml (English follow) Bonjour, Ceci n'est pas une question à proprement parlé sur caml, mais j'aimerais l'utiliser pour ca. Je recherche un parser pour le langage fortran 77. 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. Je ne suis pas un expert en grammaire de langage, ni en programation de parser, aussi si quelqu'un avez fait quelque chose de similaire, j'apprécierai grandement le gain en temps :) C2caml (mlgtk) ou camlidl sont un peu complexe (parce que tout le C qui est beaucoup plus complex que le fortran ;) comme point de départ. Peut-etre avez des pointeurs sur ce probleme pour les débutants ? Merci d'avance. ============================================================================= Hello, This is not a question about caml in fact, but I'd like to use it for this :) I search a parser for fortran 77 language. My goal is to make an hash of functions and subroutines dependencies to find which isn't use ! I'm not an expert in grammar language and parser so if someone has do something like that I appreciate this time gain. C2caml (mlgtk) or camlidl are a litle complicated (because all C feature are use) as start point. Perhaps have you some link about that for beginer ;) ? Thanks in advance. (Sorry for bad english) -- ##################################### # Patrick GOLDBRONN # # CEA - DRN/DMT/SYSCO # # CE-Saclay, Bâtiment 460 # # 91191 GIF/YVETTE CEDEX (FRANCE) # # # # Tél : 01 69 08 73 55 # # Fax : 01 69 08 96 96 # ##################################### ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: fortran parser 2000-07-13 13:22 fortran parser Patrick Goldbronn - SYSCO @ 2000-07-17 9:36 ` Nicolas Ratier 2000-07-19 19:58 ` Xavier Leroy 1 sibling, 0 replies; 4+ messages in thread From: Nicolas Ratier @ 2000-07-17 9:36 UTC (permalink / raw) To: Patrick Goldbronn - SYSCO; +Cc: Inria, caml 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 ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: fortran parser 2000-07-13 13:22 fortran parser Patrick Goldbronn - SYSCO 2000-07-17 9:36 ` Nicolas Ratier @ 2000-07-19 19:58 ` Xavier Leroy 1 sibling, 0 replies; 4+ messages in thread From: Xavier Leroy @ 2000-07-19 19:58 UTC (permalink / raw) To: Patrick Goldbronn - SYSCO, Inria, caml > This is not a question about caml in fact, but I'd like to use it for > this :) > I search a parser for fortran 77 language. I believe the Odyssée automatic differentiation tool contains an F77 parser written in OCaml: http://www-sop.inria.fr/safir/SAM/Odyssee/odyssee-eng.html They don't seem to distribute sources, but if you ask them nicely... - Xavier Leroy ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <200007162310.BAA08076@lri.lri.fr>]
* Re: fortran parser [not found] <200007162310.BAA08076@lri.lri.fr> @ 2000-07-21 15:19 ` Patrick Goldbronn - SYSCO/LGLS 0 siblings, 0 replies; 4+ messages in thread From: Patrick Goldbronn - SYSCO/LGLS @ 2000-07-21 15:19 UTC (permalink / raw) To: Ralf Treinen, Nicolas Ratier, Leroy, Xavier, Inria, caml Thank you for your answer. For information I have found in ftp://ftp.lip6.fr/pub/linux/sunsite/devel/lang/fortran/!INDEX.html fgen-0.3.tgz which contain what I want (in a perl file : f2html) I'd like to work with ocaml : I used perl ;-) The trouble is : where looking when we aren't fall in when we were baby :) Thank's -- ##################################### # Patrick GOLDBRONN # # CEA - DRN/DMT/SYSCO # # CE-Saclay, Bâtiment 460 # # 91191 GIF/YVETTE CEDEX (FRANCE) # # # # Tél : 01 69 08 73 55 # # Fax : 01 69 08 96 96 # ##################################### ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2000-07-21 21:23 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2000-07-13 13:22 fortran parser Patrick Goldbronn - SYSCO 2000-07-17 9:36 ` Nicolas Ratier 2000-07-19 19:58 ` Xavier Leroy [not found] <200007162310.BAA08076@lri.lri.fr> 2000-07-21 15:19 ` Patrick Goldbronn - SYSCO/LGLS
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox