Code analysis of my Fortran shows 0 comments while in reality there are some, which have a lower-case "c" in column 1.
Code analysis of my Fortran shows 0 comments while in reality there are some, which have a lower-case "c" in column 1.
Hi Glenn,
I can open a bug ticket for this.
I haven't used Fortran in well, decades, so my memory is hazy. I thought that 'c' comments only worked in fixed format, but obviously I'm mistaken. Can you point me to a reference that explains this?
If you really want to earn bonus points, here is the source code for the Fortran free-format parser, written as a Ragel state machine....
Your "source code" link returns "404 - no such project". Incidentally my code is probably really fixed format anyhow, misidentified as free format for some reason (perhaps because it is in lowercase).
The "second_f" code was written according to Fortran 77 (SGI) which is described in http://laplace.physics.ubc.ca/Doc/sgi/f77ref/ and allows lowercase characters (the document does not seem to mention that that is an SGI extension).