{"id":28228127,"url":"https://github.com/zpnst/refunpy","last_synced_at":"2025-09-02T15:33:16.903Z","repository":{"id":289142308,"uuid":"968845874","full_name":"zpnst/refunpy","owner":"zpnst","description":"Executable specification of FunC / Tiny FunC interpreter on ReFalPy","archived":false,"fork":false,"pushed_at":"2025-05-02T16:06:11.000Z","size":39,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-20T21:49:07.866Z","etag":null,"topics":["interpreter","refal","semantics"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zpnst.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-18T21:01:10.000Z","updated_at":"2025-05-29T12:02:26.000Z","dependencies_parsed_at":"2025-06-20T21:37:17.386Z","dependency_job_id":null,"html_url":"https://github.com/zpnst/refunpy","commit_stats":null,"previous_names":["zpnst/refunpy"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zpnst/refunpy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zpnst%2Frefunpy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zpnst%2Frefunpy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zpnst%2Frefunpy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zpnst%2Frefunpy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zpnst","download_url":"https://codeload.github.com/zpnst/refunpy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zpnst%2Frefunpy/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265237770,"owners_count":23732519,"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":["interpreter","refal","semantics"],"created_at":"2025-05-18T14:09:27.653Z","updated_at":"2025-07-14T03:39:47.294Z","avatar_url":"https://github.com/zpnst.png","language":"Python","readme":"# Executable specification of FunC / Tiny FunC interpreter on ReFalPy \n\n## How to use:\n\n```\n./refunpy --help\n```\n\n## Cloning:\n\n```\ngit clone --recurse-submodules git@github.com:zpnst/refunpy.git\n```\n\n## Example:\n\nFunC programm:\n\n```C\n{-\n    Simple, \n        FunC programm!\n-}\n\nconst A = 222;\n\nint plus(int x, int y) impure inline {\n    return x + y;\n}\n\n;; Hello!\n(int, int) mult_plus(int x, int y) impure inline_ref {\n    return (\n        plus(x * y, x * y) + A, \n        (plus(x * y, x * y) + 2) / 3\n    );\n}\n\n;; This is STRDUMP TVM instruction!\n() ~strLog(slice value) impure asm \"STRDUMP\";\n\n() main() impure { ;; Main function!\n    int hello = \"Hello!\\n\"; ;; Hello!\n    ~strLog(hello);\n\n    (int res4, int res5) = mult_plus(1, 2);\n\n    return (); {-\n        Hello, World!\n    -}\n}\n```\n\nOutput:\n\n```shell\nzpnst@debian ~/D/p/p/c/p/refunpy (v2)\u003e ./refunpy contracts/p.func --env\nHello!\n-- RES:  (('glob', (('A', 222),), 'funcs', ((('hello', '\"Hello!\\\\n\"'), ('res4', 226), ('res5', 2)),)),)\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzpnst%2Frefunpy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzpnst%2Frefunpy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzpnst%2Frefunpy/lists"}