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
unifdefcommand line tool - Install
python3for Code Clone Analysis 🔗 - Install
meldfor clone pair diffing
- Install all prerequisites
- Copy FORTRAN source code to
./sourceand 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
./sourceto 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.