Is there a way to tell ifort or gfortran to just try to parse a source file (no include following, no compilation, no linking, etc) to tell us whether they find the syntax of the file acceptable / valid for a given Fortran version (77, 90, 95, ...) or at least valid at all?
I'm working on a piece of software that will parse and analyze Fortran source files, perform transformations on their semantic representation and generate new Fortran source code files as result.
Until my (standards-adherent) strict parser is ready to roll, I first plan to use a relaxed one. That relaxed parser
- must parse all files ifort and gfortran parse
- may also parse files ifort and gfortran rejects (that's why I called it names like relaxed, forgiving, etc. hehe ^__^")
. That's why I would love to know whether, at the initial stages of this project, we could use delegate the work of strict syntactic validation to common compilers.