{"id":22141368,"url":"https://github.com/jbrosdevelopment/calc_lang","last_synced_at":"2025-07-18T07:07:29.836Z","repository":{"id":252685500,"uuid":"841130900","full_name":"JBrosDevelopment/calc_lang","owner":"JBrosDevelopment","description":"A programming language designed to look like math and be used like a calculator ","archived":false,"fork":false,"pushed_at":"2024-09-09T01:22:44.000Z","size":74,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T11:21:55.867Z","etag":null,"topics":["calculaor","calculation","programming-language","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/JBrosDevelopment.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-11T18:19:09.000Z","updated_at":"2024-09-09T01:22:47.000Z","dependencies_parsed_at":"2024-08-11T19:55:40.028Z","dependency_job_id":"b337335a-7ec1-49d6-8fad-b4ddddf0a34f","html_url":"https://github.com/JBrosDevelopment/calc_lang","commit_stats":null,"previous_names":["jbrosdevelopment/calc_lang"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/JBrosDevelopment/calc_lang","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JBrosDevelopment%2Fcalc_lang","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JBrosDevelopment%2Fcalc_lang/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JBrosDevelopment%2Fcalc_lang/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JBrosDevelopment%2Fcalc_lang/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JBrosDevelopment","download_url":"https://codeload.github.com/JBrosDevelopment/calc_lang/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JBrosDevelopment%2Fcalc_lang/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265716306,"owners_count":23816354,"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":["calculaor","calculation","programming-language","rust"],"created_at":"2024-12-01T21:12:47.472Z","updated_at":"2025-07-18T07:07:29.808Z","avatar_url":"https://github.com/JBrosDevelopment.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Calculator Language\n\nThis is a programming langauage that makes it extremely straightforward to program mathamatical expressions. \n\n**Functions**\n```\nlerp(A, B, T) =\u003e A + T * (B - A)\ndisplay(lerp(0, 50, 100))\n```\n\n**Variables**\n```\n(5 * 60)^3 -\u003e X\n99 -\u003e Y\nXY -\u003e Z\ndisplay(Z)\n```\n\n**Constants**\n```\n3.14159 -\u003e pi\npi * 2 -\u003e tau\n```\n\n**Comments**\n```\n... display alt character function\ndac(120) ... '120' is the alt-code for 'x'\n... displays 'x' to the console \n```\n\n**If Patterns**\n```\n... returns X if X \u003e Y, else returns Y\nmax(X, Y) =\u003e X \u003e Y: X; Y\n\nmax(-5, 70) -\u003e A\n7 * (5 \u003e A: 1; 2) -\u003e B\n```\n\n**Markers and `goto()`**\n```\n$0               ... marker\nI + 1 -\u003e I       ... increment I\nI \u003c 10: goto(0)  ... loops 10 times\n```\n\n**Complex Functions**\n```\ndegtorad(X) =\u003e X * (pi / 180)\nsin(X) =\u003e degtorad(X) - (degtorad(X)^3 / 3!) + (degtorad(X)^5 / 5!) - (degtorad(X)^7 / 7!)\ncos(X) =\u003e 1 - (sin(X)^2)\ntan(X) =\u003e sin(X) / cos(X)\nln(X) =\u003e 2 * ((X-1) / (X+1) + (1/3) * ((X-1)/(X+1))^3 + (1/5) * ((X-1)/(X+1))^5 + (1/7) * ((X-1)/(X+1))^7 + (1/9) * ((X-1)/(X+1))^9) \nlog(X) =\u003e ln(X) / ln(10)\n```\n\n**Sets**\n```\n{ 5, 6, sin(7), X } -\u003e W\ndisplay(W_1) ... displays first index of set W '5'\n```\n\n**[Example Code](https://github.com/JBrosDevelopment/calc_lang/blob/master/src/calculation.txt)**","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjbrosdevelopment%2Fcalc_lang","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjbrosdevelopment%2Fcalc_lang","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjbrosdevelopment%2Fcalc_lang/lists"}