{"id":24506677,"url":"https://github.com/alejoriosm04/polish-notation-calculator","last_synced_at":"2025-07-14T06:35:07.662Z","repository":{"id":59731376,"uuid":"537543423","full_name":"alejoriosm04/polish-notation-calculator","owner":"alejoriosm04","description":"An implementation of a polish notation (PN) calculator in C++ that does not rely on Standard Libraries.","archived":false,"fork":false,"pushed_at":"2022-10-02T22:15:52.000Z","size":893,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-11T21:56:32.016Z","etag":null,"topics":["calculator","cpp"],"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/alejoriosm04.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-09-16T16:48:35.000Z","updated_at":"2023-01-07T01:24:26.000Z","dependencies_parsed_at":"2023-01-19T00:00:32.894Z","dependency_job_id":null,"html_url":"https://github.com/alejoriosm04/polish-notation-calculator","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/alejoriosm04/polish-notation-calculator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alejoriosm04%2Fpolish-notation-calculator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alejoriosm04%2Fpolish-notation-calculator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alejoriosm04%2Fpolish-notation-calculator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alejoriosm04%2Fpolish-notation-calculator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alejoriosm04","download_url":"https://codeload.github.com/alejoriosm04/polish-notation-calculator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alejoriosm04%2Fpolish-notation-calculator/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265253387,"owners_count":23735093,"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":["calculator","cpp"],"created_at":"2025-01-21T23:39:20.046Z","updated_at":"2025-07-14T06:35:07.622Z","avatar_url":"https://github.com/alejoriosm04.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align = \"center\"\u003ePolish Notation Calculator\u003c/h1\u003e\n\nAn implementation of a polish notation (PN)[^definition] calculator in C++ that does not rely on Standard Libraries.\n\n## Features\n\n- 📥 Checks valid syntax of polish notation (PN) expressions\n\n- 🔍 Analyzes the expressions with a regex process\n\n- 🤔 Output result of PN expression and operational steps for solving it\n\n- 🔁 Calculate endlessly (no need to execute the program each time)\n\n## Motivation\n\nThe main aim of this project was to recreate the behavior of linked lists in C++ from scratch.\n\nIn other words, not using Standard Libraries of C++.\n\n## Method\n\n###  Flow\n\n1. The user inputs a polish notation (PN) expression.\n\n2. Then it is checked by a simple regular expressions system that:\n\n    - If invalid, asks for a new expression\n\n    - Otherwise, prompts the user: see result and operations?\n\n3. Finally, the user can input a new PN expression.\n\n### Technical details\n\n- Makes use of the **stack** memory model for the operations related to the linked lists. Where the last item in a linked list, is the first out of it (LIFO).\n\n- Applies concepts such as pointers and references in C++.\n\n- Modeled towards object-oriented programming.\n\n## Documentation\n\n**Note:** Please read the instructions and suggestions displayed at the start.\n\n- **Evaluate and calculate** PN expressions:\n\n    \u003e \\+ * 8 -72.4 4\n\n    \u003e / 8 + 6 * 3 2\n\n- **Operators**: addition (`+`), subtraction (`-`), multiplication\n    (`*`), division (`/`).\n\n- **Decimal numbers** (dot as decimal separator) and **negative numbers**.\n\n### Caveats\n\nPN expressions have a certain way to be declared algebraically. Please be sure of the syntax to avoid errors in execution.\n\nBe aware that it's possible for the program to answer correctly to some _wrong_ inputs. However, I plan to correct these kind of bugs in future updates. See [Contribute](#contribute).\n\nAs a precaution, the program does not break if the input is invalid.\n\n## Install\n\n- Binaries are in pre-release.\n\n\u003c!-- Uncomment when binaries are released\n- The project was compiled to be run as an executable file. See [releases](https://github.com/alejoriosm04/polish-notation-calculator/releases).\n--\u003e\n\n- Clone the repo:\n\n        git clone https://github.com/alejoriosm04/polish-notation-calculator.git\n\n## Contribute\n\nYou are welcome to submit issues or pull requests.\n\n## Authors\n\n[Alejandro Ríos](https://github.com/alejoriosm04) developed the entire program.[^thanks]\n\n## License\n\nCopyright 2022 Alejandro Ríos.\n\n[^definition]: [Wikipedia](https://en.wikipedia.org/wiki/Polish_notation): \"A mathematical notation in which operators precede their operands\".\n\n[^thanks]: Thanks to [Luis M. Torres-Villegas](https://github.com/LuisForPresident) for revising the README.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falejoriosm04%2Fpolish-notation-calculator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falejoriosm04%2Fpolish-notation-calculator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falejoriosm04%2Fpolish-notation-calculator/lists"}