fypp

Fortran preprocessor with Python expression support for code generation.

brewmacoslinux
Try with needOr install directly
Source

About

Python powered Fortran preprocessor

Commands

fypp

Examples

preprocess Fortran file and save output$ fypp input.f90 -o output.f90
use Python variables in Fortran code$ fypp -D MY_VAR=42 template.f90 -o result.f90
generate multiple Fortran files from template$ fypp -D TYPE=real,integer template.f90 -o output.f90
preprocess with custom configuration file$ fypp -I include_dir source.f90 -o source_processed.f90
embed conditional logic in Fortran source code$ fypp -M preprocessor.py script.f90 -o compiled.f90