Download Latest Version OpenFortranParser-0.8.3.jar (1.1 MB)
Email in envelope

Get an email when there's a new version of Open Fortran Project

Home / contrib / 0.7.1 / OFPxml
Name Modified Size InfoDownloads / Week
Parent folder
README.txt 2012-08-06 1.0 kB
OFPxml.0.7.1.patch 2012-08-06 175.4 kB
Totals: 2 Items   176.4 kB 0
This patch is for the source tree of Open Fortran Parser 0.7.1.

To apply the patch...

$ cd OpenFortranParser-0.7.1
$ cp ../OFPxml.0.7.1.patch .
$ patch -p1 < OFPxml.0.7.1.patch

...and build OFP in the usual manner.

The patch adds several features to OFP:

[1]  The frontend fortran.ofp.FrontEnd now accepts a '--xml' switch which
causes an XML DOM tree of the Fortran input to be constructed.  This is
implemented by the addition of a FortranParserActionXML type, described
in the file src/fortran/ofp/parser/java/FortranParserActionXML.java.
Note that this class employs the JDOM XML library (www.jdom.org).


[2]  The src/fortran/tools directory now contains code, in both Java and
Python, for a utility class OFPCommentReader which can be invoked from
client code to provide a convenient interface by which line comments may be
extracted from Fortran source code and made available to code using OFP.
Each class provides an executable main method which illustrates the usage
of the classes' methods.
Source: README.txt, updated 2012-08-06