{"id":20432415,"url":"https://github.com/zikiflicky/calculator","last_synced_at":"2026-05-28T13:02:39.846Z","repository":{"id":107031224,"uuid":"388184906","full_name":"ZikiFlicky/Calculator","owner":"ZikiFlicky","description":"A small and simple calculator written in C","archived":false,"fork":false,"pushed_at":"2021-07-22T14:59:55.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-06T14:24:59.658Z","etag":null,"topics":["c","c99","calculator"],"latest_commit_sha":null,"homepage":"","language":"C","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/ZikiFlicky.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":"2021-07-21T16:47:24.000Z","updated_at":"2021-07-22T14:59:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"a340274d-882b-47d1-9b37-c2a8205fda82","html_url":"https://github.com/ZikiFlicky/Calculator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ZikiFlicky/Calculator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZikiFlicky%2FCalculator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZikiFlicky%2FCalculator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZikiFlicky%2FCalculator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZikiFlicky%2FCalculator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ZikiFlicky","download_url":"https://codeload.github.com/ZikiFlicky/Calculator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZikiFlicky%2FCalculator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33609237,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-28T02:00:06.440Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["c","c99","calculator"],"created_at":"2024-11-15T08:14:59.280Z","updated_at":"2026-05-28T13:02:39.830Z","avatar_url":"https://github.com/ZikiFlicky.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Calculator\nThis is a simple command line calculator program written in C (C99).\n\nIt can also be used as a library, if one imports just `calculator.c` and `calculator.h`.\n\nIt currently supports basic operators like + - * / () % ^.\n\nThis program was created because I wanted to think of an algorithm to do calculations, so I tried to think of my own one and came up with this.\n\n## Build instructions\nFirst, `git clone` the repository\n### Linux or any other unix-like operating systems\n#### Dependencies\n* GNU make\n* GCC\n#### Instructions\n* `cd` into the program's directory.\n* Type `make`.\n* Type `./calculator` to run the program\n\n### Windows\n#### Dependencies\n* Visual Studio 2019\n#### Instructions\n* `cd` into the program's directory.\n* Type `.\\make`.\n* Type `.\\calculator` to run the program\n\n## How it works\nThis calculator works by moving linearly on an array of tokens and creating a tree of nodes, that are later recursively evaluated, and at the end return a number.\n\n### This is a node tree created from 1+2*3^4-5\n```\n       (-)\n     /     \\\n   (+)     (5)\n  /   \\\n(1)   (*)\n     /   \\\n   (2)   (^)\n        /   \\\n      (3)   (4)\n```\nIt will later be evaluated recursivaly to finally return 158.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzikiflicky%2Fcalculator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzikiflicky%2Fcalculator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzikiflicky%2Fcalculator/lists"}