title: How to use Fortran compilers to parse-check or pretty print source files?
body: <p>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?</p>
  
  <p>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.</p>
  
  <p>Until my (standards-adherent) strict parser is ready to roll, I first plan to use a relaxed one. That relaxed parser</p>
  
  <ul>
  <li>must parse all files ifort and gfortran parse</li>
  <li>may also parse files ifort and gfortran rejects (that's why I called it names like relaxed, forgiving, etc. hehe ^__^")</li>
  </ul>
  
  <p>. 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.</p>