Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!pikes!aspen.craycos.com!jrbd From: jrbd@craycos.com (James Davies) Newsgroups: comp.lang.fortran Subject: Re: lint like program for fortran Message-ID: <1991May13.145417.257@craycos.com> Date: 13 May 91 14:54:17 GMT References: <6242@trantor.harris-atd.com> Organization: Cray Computer Corporation Lines: 21 In article wvenable@spam.ua.oz.au (Bill Venables) writes: >In article jkorpela@vipunen.hut.fi >(Jukka Korpela) writes: > >: A few comments on FORCHEK: ... >: - It ignores the fact that in FORTRAN blanks are insignificant. This is >: documented feature but not necessarily desirable. > (c) the yacc file would have been interesting in its own right, > since using yacc to generate a parser for even a superficial > parsing of an old language like Fortran is no mean feat. Actually, the hardest part of parsing Fortran (in my experience) is that some feedback is needed from the parser to the lexical analyzer. Partly this is to handle holleriths and some other constants properly: do 10 h=1,10 character*10 e10 and by requiring significant spaces FORCHEK dodges this problem. Perhaps a more serious limitation is that FORCHEK doesn't handle equivalences.