This section will provide a guide on the basic usage of FortranAS for running with a locally installed JRE and with the provided Docker runtime context.
Grab the latest release: https://github.com/akoerner/FortranAS/releases
The following prerequisites must be installed in order to run FortranAS:
- Install JRE 19+
- Install GraphViz (for DOT file conversion to SVG and PNG)
- Install
unifdef
command line tool - Install
python3
for Code Clone Analysis 🔗 - Install
meld
for clone pair diffing
- Install all prerequisites
- Copy FORTRAN source code to
./source
and optionally strip preprocessor directives usingtools/unifdef.sh
- Run FortranAS:
./fortranas --output-directory output \
--input-source-code-directory source \
--print-fortran-files \
--parse-fortran-files \
--calculate-code-clones
ℹ️INFO: All FortranAS parsed and generated output files will be placed in
./output
- Run the Code Clone Analysis 🔗 scripts to generate and analyze code clone pairs.
- Follow the Quickstart 🔗 to setup FortranAS
- Place FORTRAN source code in
./source
to parse and analyze it
- Optionally, strip preprocessor directives (See: Non-standard Language Features )
- Run the provided FortranAS docker context via make:
make run
ℹ️INFO: All FortranAS parsed and generated output files will be placed in
./output
- Run the Code Clone Analysis 🔗 scripts to generate and analyze code clone pairs.