PyForTool - Python FORTRAN source-to-source transformation tool.
A Python package built on top of fxtran for manipulating FORTRAN source files.
Provides capabilities for:
- Parsing FORTRAN source code into XML
- Analyzing and querying code structure (scopes, variables, statements)
- Applying transformations (code optimization, GPU preparation, instrumentation)
- Writing transformed code back to FORTRAN
Basic Usage
----------
>>> from pyfortool import PYFT
>>> pft = PYFT('input.F90')
>>> pft.upperCase()
>>> pft.write()
Main Classes
-----------
PYFT : Main class for file-level operations
PYFTscope : Scope-level operations (modules, subroutines, functions)
See Also
--------
fxtran : External FORTRAN parser used by PyForTool