{"id":15980764,"url":"https://github.com/abrams27/fibin-language","last_synced_at":"2026-06-06T23:32:21.464Z","repository":{"id":117811253,"uuid":"302450260","full_name":"abrams27/fibin-language","owner":"abrams27","description":"A simple functional language written using c++ templates","archived":false,"fork":false,"pushed_at":"2021-09-28T19:32:32.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-07T23:25:14.091Z","etag":null,"topics":["cpp-templates","interpreter","language"],"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/abrams27.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}},"created_at":"2020-10-08T20:07:50.000Z","updated_at":"2022-02-21T19:32:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"d1af97b5-a1be-4b3f-bb1f-78bf3c3490b7","html_url":"https://github.com/abrams27/fibin-language","commit_stats":{"total_commits":5,"total_committers":2,"mean_commits":2.5,"dds":"0.19999999999999996","last_synced_commit":"d5fba98e3f86900163c40188c7d6e3bfae3eba80"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abrams27%2Ffibin-language","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abrams27%2Ffibin-language/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abrams27%2Ffibin-language/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abrams27%2Ffibin-language/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abrams27","download_url":"https://codeload.github.com/abrams27/fibin-language/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240636663,"owners_count":19832922,"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":["cpp-templates","interpreter","language"],"created_at":"2024-10-08T00:22:28.757Z","updated_at":"2025-02-25T08:53:47.271Z","avatar_url":"https://github.com/abrams27.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fibin language\nA simple functional language written using c++ templates.\n\n--- \ncoauthor: [@Pawel494](https://github.com/Pawel494)\n\n# Semantics\n* Literals `Lit` - only allowed Fibbonaci numbers (non negative): `Fib\u003c0\u003e = 0, Fib\u003c1\u003e = 1 ...`\n  or logic values: `True, False`, \\\n  example: \n  ```\n  Lit\u003cFib\u003c0\u003e\u003e, Lit\u003cTrue\u003e\n  ```\n  \n* Variables `Var`:\n  ```\n  Var(const char*)\n  ```\n  labels are string (1 to 6 signs) with letters (case insensitive) and digits, \\\n  example:\n  ```\n  Var(\"A\"), Var(\"01234\"), Var(\"Cdefg\")\n  ```\n  \n* Arithmetic operations `Sum, Inc1, Inc10`\n    - `Sum\u003c...\u003e` - multiple arguments sum (at least two),\n    - `Inc1\u003cArg\u003e` - adds `Fib\u003c1\u003e` to `Arg`,\n    - `Inc10\u003cArg\u003e` - adds `Fib\u003c10` to `Arg`,\n \n  example:\n  ```\n  Sum\u003cLit\u003cFib\u003c0\u003e\u003e, Lit\u003cFib\u003c1\u003e\u003e, Lit\u003cFib\u003c3\u003e\u003e\u003e, Inc1\u003cLit\u003cFib\u003c0\u003e\u003e\u003e\n  ```\n \n* Comparison `Eq` - \n  `Eq\u003cLeft, Right\u003e` compares value of Left with Right, \\\n  example: \n  ```\n  Eq\u003cLit\u003cFib\u003c0\u003e\u003e, Lit\u003cFib\u003c1\u003e\u003e\u003e\n  ```\n  \n* Refernce `Ref` - \n  `Ref\u003cVar\u003e` return the value of `Var`, \\\n  example:\n  ```\n  Ref\u003cVar(\"A\")\u003e\n  ```\n  \n* Expression `Let` -\n  `Let\u003cVar, Value, Expression\u003e` assigns `Value` to the `Var` and calculates given `Expression`, \\\n  example: \n  ```\n  Let\u003cVar(\"A\"), Lit\u003cFib\u003c1\u003e\u003e, Ref\u003cVar(\"A\")\u003e\u003e\n  ```\n  \n* Expression `If` -\n  `If\u003cCondition, Then, Else\u003e` if `Condition` result is True then calculates value of `Then` otherwise value of `Else` is calculated, \\ \n  example: \n  ```\n  If\u003cLit\u003cTrue\u003e, Lit\u003cFib\u003c1\u003e\u003e, Lit\u003cFib\u003c0\u003e\u003e\u003e\n  ```\n  \n* Expression `Lambda` -\n  `Lambda\u003cVar, Body\u003e` reprezents anonymous function with singe input argument `Var` and body `Body`, \\\n  example: \n  ```\n  Lambda\u003cVar(\"x\"), Ref\u003cVar(\"x\")\u003e\u003e\n  ```\n  \n* Function invocation `Invoke` -\n  `Invoke\u003cFun, Param\u003e` calculates `Fun` result for the given input parameter `Param`, \\\n  example: \n  ```\n  Invoke\u003cLambda\u003cVar(\"x\"), Ref\u003cVar(\"x\")\u003e\u003e, Lit\u003cFib\u003c0\u003e\u003e\u003e\n  ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabrams27%2Ffibin-language","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabrams27%2Ffibin-language","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabrams27%2Ffibin-language/lists"}