{"id":21074970,"url":"https://github.com/marchellodev/kse_ds_stack_n_str_calculator","last_synced_at":"2026-04-21T16:04:36.177Z","repository":{"id":115885264,"uuid":"448818707","full_name":"marchellodev/kse_ds_stack_n_str_calculator","owner":"marchellodev","description":null,"archived":false,"fork":false,"pushed_at":"2022-01-22T09:32:44.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-03T08:52:03.431Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/marchellodev.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":"2022-01-17T08:53:52.000Z","updated_at":"2022-01-17T08:53:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"8423ce02-9c27-44eb-926c-34cee8a7fba7","html_url":"https://github.com/marchellodev/kse_ds_stack_n_str_calculator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/marchellodev/kse_ds_stack_n_str_calculator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marchellodev%2Fkse_ds_stack_n_str_calculator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marchellodev%2Fkse_ds_stack_n_str_calculator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marchellodev%2Fkse_ds_stack_n_str_calculator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marchellodev%2Fkse_ds_stack_n_str_calculator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marchellodev","download_url":"https://codeload.github.com/marchellodev/kse_ds_stack_n_str_calculator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marchellodev%2Fkse_ds_stack_n_str_calculator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32099203,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-21T11:25:29.218Z","status":"ssl_error","status_checked_at":"2026-04-21T11:25:28.499Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":[],"created_at":"2024-11-19T19:19:04.212Z","updated_at":"2026-04-21T16:04:36.145Z","avatar_url":"https://github.com/marchellodev.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# KSE Algorithms Homework #1\n\n[Task](https://github.com/kse-ua/algorithms/blob/main/assignments_2021/assignment_1.md)\n\n- Define and implement a `Stack` data structure\n- Implement a calculator, that takes in a string (i.e. `2 * (3 + 7 - 1)`) and returns the result (i.e. `18`)\n\n\n## Running\nNote: The program uses Linux's readline ([for better editing experience](https://stackoverflow.com/a/7463298)), so it'll only work on Linux machines (maybe also MacOS, I am not sure). Please refere to commit [03a63c](https://github.com/marchellodev/kse_ds_stack_n_str_calculator/commit/03a63cd70a8fde953db16b783bda6e2cb50ca070) when trying to run this thing on an OS other than Linux.\n\n```shell\n# Cleanup\nrm Makefile kse_alg_1 cmake_install.cmake CMakeFiles CMakeCache.txt cmake-build-debug bin CTestTestfile.cmake _deps testing lib testing\\[* -rf\n\n# Building \u0026 Running\ncmake .\nmake\n./kse_alg_1\n```\n\n\n## TO-DO\n- [ ] Use custom data structure instead of `vector\u003c\u003e` for lists\n- [ ] Define `Queue` and use it instead of `vector\u003cToken\u003e` for the Shunting-yard algorithm\n- [ ] Implement testintg\n\n\n## Tested on the following inputs:\n```shell\n2 + 3                             5\n2 * (3 + 7 - 1)                   18\n2 + (3 * (8 - 4))                 14\n3 + 4 * 2 / (1 - 5)^2^3           3\n\n# additional task\n3 -- 2                            5\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarchellodev%2Fkse_ds_stack_n_str_calculator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarchellodev%2Fkse_ds_stack_n_str_calculator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarchellodev%2Fkse_ds_stack_n_str_calculator/lists"}