{"id":19473200,"url":"https://github.com/kiblitz/stack-calculator","last_synced_at":"2026-04-20T19:32:23.305Z","repository":{"id":120630493,"uuid":"304464400","full_name":"kiblitz/stack-calculator","owner":"kiblitz","description":"stack-based CLI postfix expression evaluator","archived":false,"fork":false,"pushed_at":"2020-10-25T03:57:32.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-31T10:39:56.652Z","etag":null,"topics":["calculator","cli","cpp","evaluator","json","postfix","stack"],"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/kiblitz.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-15T22:45:29.000Z","updated_at":"2022-12-20T07:36:11.000Z","dependencies_parsed_at":"2024-08-12T00:03:07.294Z","dependency_job_id":null,"html_url":"https://github.com/kiblitz/stack-calculator","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/kiblitz/stack-calculator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiblitz%2Fstack-calculator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiblitz%2Fstack-calculator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiblitz%2Fstack-calculator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiblitz%2Fstack-calculator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kiblitz","download_url":"https://codeload.github.com/kiblitz/stack-calculator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kiblitz%2Fstack-calculator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32062366,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T11:35:06.609Z","status":"ssl_error","status_checked_at":"2026-04-20T11:34:48.899Z","response_time":94,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["calculator","cli","cpp","evaluator","json","postfix","stack"],"created_at":"2024-11-10T19:17:40.349Z","updated_at":"2026-04-20T19:32:23.300Z","avatar_url":"https://github.com/kiblitz.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# stack-calculator\n## About\nCLI evaluator for postfix expressions (reverse Polish notation)\n## Use\nDownload the release and execute it in the following form\n```\n./stack-calc [--stack] [file.json...]\n```\n- ### --stack\n  If enabled, displays the stack after every operation\n- ### file.json...\n  Expand command list with json files\n  #### ex:\n  ```\n  {\n  \"abs\":\"dup 0 \u003c if -1 * noop\",\n  \"dup\":\"1 pick\",\n  \"err\":\"2 pick - abs swap /\"\n  }\n  ```\n  \n### Commands\n- **quit**: quits the program\n- **help**: displays commands list\n- **stack**: displays the stack\n- **noop**: pass\n- **clear**: empties stack\n- **pop**: removes top of stack\n- **popn**: removes top `n` elements of the stack (*ex: `1 2 3 2 popn` =\u003e `1`*)\n- **skip**: skips next `n` commands (*ex: `2 skip 1 2 3 4` =\u003e `3 4`*)\n- **pick**: copies the `n`th element of the stack (*ex: `2 3 4 2 pick` =\u003e `2 3 4 3`*)\n- **swap**: swaps top `2` elements of the stack\n- **if**: if the top element of the stack is `0`, skip the next `3` commands (*ex: `0 if 1 2 3 4` =\u003e `4`*)\n- **\u003e**, **=**, **\u003c**: `1` if true, `0` otherwise (*ex: `2 \u003c 3` =\u003e `1`*)\n- **+**, **-**, **\\***, **/**, **//**, **%**, **^**, **e**, **pi**, **ln**, **sin**, **arcsin**, **cos**, **arccos**, **tan**, **arctan**: standard functions\n\n### Custom Commands\nIn the form `: command corresponding-commands... ;`\n- **ex**: `: dup 1 pick ;`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkiblitz%2Fstack-calculator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkiblitz%2Fstack-calculator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkiblitz%2Fstack-calculator/lists"}