parsing - How to use Fortran compilers to parse-check or pretty print source files? -
Is there a way to try to parsor or cure a source file (does not include the following, no compilation Do not linking, etc.) to tell us whether they are syntactical / valid file syntax for at least the FORTRAN version (77, 90, 95, ...) or at least valid?
I'm working on a part of the software that will pars and analyze Fortran source files, change their meaning on the representation and as a result the new Fortran source code will generate the files.
This is the reason why I would like to know whether the initial steps of the project, For strict syntax verification, you can use the representative. / P>
Do you try to look at the man page
should support gfortran
-syntax-only / check the code for syntax errors, but do not do anything with that.
should support for ifortran
-fysyntax-only / -syntax-only / -y // has all the same meanings // Specifies that the source file Correct syntax Sector should be Czech to. // No code is not generated, not created an object file, and bypass the check error by the optimizer. This option lets you test quick syntax of // source file.
Consider these options for ifortran
-e90 -e95 -stand f90 -stand f95 -noinclude
Comments
Post a Comment