Q: tool to determine type of parameters?

gregor@npac.syr.edu (Gregor von Laszewski)
Thu, 30 Mar 1995 15:43:41 GMT

          From comp.compilers

Related articles
Q: tool to determine type of parameters? gregor@npac.syr.edu (1995-03-30)
| List of all articles for this month |

Newsgroups: comp.lang.fortran,comp.compilers
From: gregor@npac.syr.edu (Gregor von Laszewski)
Keywords: Fortran, question
Organization: Northeast Parallel Architectures Center at Syracuse University (NPAC)
Date: Thu, 30 Mar 1995 15:43:41 GMT

Dear Experts:


I am looking for a simple fortran analysis program which
returns the types of the parameters to a given procedure in
FORTRAN. It is assumed that the routine in fortran is compiled
with with implicit none.


Do you know of any such a public domain tool?


Input:
subroutine dowork (a,b,c)


implicit none


real a(500)
integer b
character(*) c


....


Output:
Output:


Name: dowork
   Type: subroutine
Returntype : none ! specified only for function
parameters : 3
Parameter[1]: a
Type[1] : real
Dimension[1]: 500
Parameter[2]: b
Type[2] : integer
Dimension[2]: 1
Parameter[1]: c
Type[1] : character
Dimension[1]: *


Thank you


Gregor von Laszewski * (315) 443-9182 gregor@npac.syr.edu
NPAC at Syracuse University * http://www.npac.syr.edu/users/gregor/gregor.html
111 College Place, Syracuse, NY 13244-4100
--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.