Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!ut-emx!jwe From: jwe@che.utexas.edu (John W. Eaton) Newsgroups: comp.lang.fortran Subject: Re: lint like program for fortran Message-ID: <48874@ut-emx.uucp> Date: 12 May 91 20:27:00 GMT References: <6242@trantor.harris-atd.com> Sender: news@ut-emx.uucp Reply-To: jwe@andy.che.utexas.edu (John W. Eaton) Organization: University of Texas at Austin Lines: 22 In article wvenable@spam.ua.oz.au (Bill Venables) writes about FORCHEK: > - The parser is a yacc generated programme, but the yacc file is not > part of the distribution. This is, of course, the right of anyone > offering free code, but somewhat unfortunate, since > (a) porting is made more difficult as error messages from the > parser are given line numbers referring back to the original > (unavailable) forchek.y file, I agree that it would be useful to have the original yacc file in the distribution. Even without it though, it is not that difficult to trace errors in the file fortran.c because the line numbers for the error messages are determined from the preprocessor comments like this: # line 345 "fortran.y" -- John W. Eaton | If the odds are a million to one jwe@che.utexas.edu | against something occurring, chances Department of Chemical Engineering | are 50-50 it will. The University of Texas at Austin | -- fortune(1)