{"id":16042757,"url":"https://github.com/victorliu/f2cpp","last_synced_at":"2025-10-22T04:30:45.937Z","repository":{"id":136242981,"uuid":"485861","full_name":"victorliu/f2cpp","owner":"victorliu","description":"Fortran to C++ \"converter\"","archived":false,"fork":false,"pushed_at":"2010-02-10T10:39:17.000Z","size":84,"stargazers_count":11,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-09T00:08:44.291Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://cylith.dyndns.org/code/f2cpp","language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/victorliu.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-01-24T03:05:15.000Z","updated_at":"2023-10-26T05:45:46.000Z","dependencies_parsed_at":"2023-03-10T19:41:27.913Z","dependency_job_id":null,"html_url":"https://github.com/victorliu/f2cpp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victorliu%2Ff2cpp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victorliu%2Ff2cpp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victorliu%2Ff2cpp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victorliu%2Ff2cpp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/victorliu","download_url":"https://codeload.github.com/victorliu/f2cpp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237585698,"owners_count":19334287,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-09T00:03:00.976Z","updated_at":"2025-10-22T04:30:45.650Z","avatar_url":"https://github.com/victorliu.png","language":"Perl","readme":"#\r\n# f2cpp.pl - Converts Fortran 77 code to C++\r\n#\r\n# Unlike f2c, the output of f2cpp.pl may or may not compile, however,\r\n# only a small number of hand-tuned changes are typically needed.\r\n# The resulting code is much cleaner than f2c's output, and much closer\r\n# to the original intent of the original Fortran code.\r\n#\r\n# The resulting C++ code is very C-style; we basically only want C++\r\n# for its std::complex\u003c\u003e type and operator overloading.\r\n#\r\n# Assumes single subroutine per file, and that there are\r\n# no lines of significance above the subroutine declaration.\r\n#\r\n# TODOs:\r\n# - Make the first step of conversion breaking up the input into chunks\r\n#   delimited by subroutine boundaries. This will require full on parsing\r\n#   of blocks.\r\n# - Some declarations are generated incorrectly, like IZAMAX, whose array\r\n#   argument is never an array.\r\n# - Fix by-value argument passing of expressions (currently lets through\r\n#   things like (-\u0026std::conj(tau)).\r\n# - Generate proper subroutine declarations for character arguments\r\n#   (should be const char *, not char).\r\n# - Determine const-ness of function declaration parameters through program\r\n#   analysis.\r\n#","funding_links":[],"categories":["Compilers"],"sub_categories":["Translators"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvictorliu%2Ff2cpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvictorliu%2Ff2cpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvictorliu%2Ff2cpp/lists"}