{"id":21323760,"url":"https://github.com/xeimsuck/cfroppy","last_synced_at":"2025-03-15T23:18:37.089Z","repository":{"id":263598045,"uuid":"838894145","full_name":"xeimsuck/CFroppy","owner":"xeimsuck","description":"Interpreter for Froppy language","archived":false,"fork":false,"pushed_at":"2024-11-25T11:58:48.000Z","size":155,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-22T12:12:38.600Z","etag":null,"topics":["cfroppy","cpp","cpp-interpreter","cpp23","froppy","interpreter"],"latest_commit_sha":null,"homepage":"","language":"C++","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/xeimsuck.png","metadata":{"files":{"readme":"README.md","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-06T14:48:30.000Z","updated_at":"2024-11-25T11:58:51.000Z","dependencies_parsed_at":"2024-11-19T12:51:02.851Z","dependency_job_id":"3ec6dc13-8a29-402e-afd5-595fe2fbb640","html_url":"https://github.com/xeimsuck/CFroppy","commit_stats":null,"previous_names":["xeimsuck/cfroppy"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xeimsuck%2FCFroppy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xeimsuck%2FCFroppy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xeimsuck%2FCFroppy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xeimsuck%2FCFroppy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xeimsuck","download_url":"https://codeload.github.com/xeimsuck/CFroppy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243801676,"owners_count":20350108,"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":["cfroppy","cpp","cpp-interpreter","cpp23","froppy","interpreter"],"created_at":"2024-11-21T20:27:03.923Z","updated_at":"2025-03-15T23:18:37.067Z","avatar_url":"https://github.com/xeimsuck.png","language":"C++","readme":"\u003cdiv align=\"center\"\u003e\n\u003ch1\u003eCFroppy\u003c/h1\u003e\nInterpreter for \u003cb\u003eFroppy\u003c/b\u003e programming language\n\u003c/div\u003e\n\n\n\u003cdiv align=\"center\"\u003e\u003ch3\u003eDependencies\u003c/h3\u003e\u003c/div\u003e\n\u003cb\u003eLanguages:\u003c/b\u003e C++23 \u003cbr /\u003e\n\u003cb\u003eBuild systems:\u003c/b\u003e CMake \u003cbr /\u003e\n\n\u003cdiv align=\"center\"\u003e\u003ch3\u003eHow to build\u003c/h3\u003e\u003c/div\u003e\n1. Create a build directory and navigate into it\n\n```shell\nmkdir build\ncd build\n```\n\n2. Build a project with CMake\n```shell\ncmake ..\nmake\nsudo make install\n# if possible use -j4 with make \n```\n\n\u003cdiv align=\"center\"\u003e\u003ch3\u003eHow to use\u003c/h3\u003e\u003c/div\u003e\n1. \u003cb\u003eRun prompt.\u003c/b\u003e Usage: \u003ci\u003e\"cfp\"\u003c/i\u003e.  \u003cbr /\u003e\n2. \u003cb\u003eRun file.\u003c/b\u003e Usage: \u003ci\u003e\"cfp [path-to-file]\"\u003c/i\u003e.\n\n\u003cdiv align=\"center\"\u003e\n\u003ch1\u003eThe Froppy Programming Language\u003c/h1\u003e\nMulti-paradigm interpreted programming language\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\u003ch3\u003eWeak typing\u003c/h3\u003e\u003c/div\u003e\nIn Froppy variables are not bound to a specific data type.\n\n```froppy\nlet x; // by default, it is initialized to nil\nprintln(x); // \u003e\u003e \"nil\"\n\nx = 52; // now it is a integer\nprintln(x); // \u003e\u003e 52\n```\n\n\u003cdiv align=\"center\"\u003e\u003ch3\u003eDynamic scoping\u003c/h3\u003e\u003c/div\u003e\nFroppy has closures.\n\n```froppy\nfn factory() {\n    fn instance() {\n        println(\"factory::instance\");\n    }\n    return instance; // return inner function\n}\n\nlet foo = factory();\nfoo(); // \u003e\u003e \"factory::instance\"\n```\n\n\u003cdiv align=\"center\"\u003e\u003ch3\u003eObject-oriented\u003c/h3\u003e\u003c/div\u003e\nFroppy is object-oriented programing language, so it has classes and inheritance.\n\n```froppy\nclass base { \n    let x;\n    fn setX(x_) { \n        x = x_; \n    }\n    fn getX() { \n        return x; \n    }\n}\n\nclass derived : base { // derived is inherited from base\n    fn setX(x_) {  // override method\n        x=x_*2;\n    }\n}\n\nlet d = derived();\nd.setX(3); // use overrided setX method\nprintlb(d.getX()); // \u003e\u003e 6\n```\n\n\u003cdiv align=\"center\"\u003e\u003ch3\u003eDocumentation\u003c/h3\u003e\u003c/div\u003e\nRead more about Froppy language in documentation.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxeimsuck%2Fcfroppy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxeimsuck%2Fcfroppy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxeimsuck%2Fcfroppy/lists"}