ratfor
« Back to VersTracker
Description:
Rational Fortran
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: fortran legacy preprocessor scientific-computing compiler
Install: brew install ratfor
About:
Ratfor (Rational Fortran) is a preprocessor that extends standard Fortran 66 with structured control flow constructs. It translates constructs like if-then-else blocks and repeat-until loops into standard Fortran code, making legacy scientific programs more readable and maintainable.
Key Features:
  • Adds structured control flow (if/else, while, repeat) to Fortran
  • Improves code readability over standard Fortran
  • Outputs portable Fortran 66 code
Use Cases:
  • Maintaining and modernizing legacy scientific computing code
  • Writing structured Fortran programs in the 1970s-80s style
Alternatives:
  • f2c – Converts Fortran to C rather than adding structure to Fortran
  • C preprocessor – Generic macro processor without Fortran-specific syntax
Version History
Detected Version Rev Change Commit
Jan 14, 2025 8:06am 0 VERSION_BUMP 7ff6c259
Sep 14, 2024 2:00am 0 VERSION_BUMP beeded13