{"id":34675952,"url":"https://github.com/carlosrs14/expression-evaluator","last_synced_at":"2026-05-28T19:02:10.912Z","repository":{"id":232101083,"uuid":"783477282","full_name":"carlosrs14/expression-evaluator","owner":"carlosrs14","description":"A program that evaluates arithmetic expressions using postfix notation.","archived":false,"fork":false,"pushed_at":"2025-12-21T03:27:44.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-22T23:28:48.708Z","etag":null,"topics":["cpp","evaluate-math-expressions","maths","postfix-evaluation","postfix-notation","university-assignment"],"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/carlosrs14.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-04-08T01:02:48.000Z","updated_at":"2025-12-21T03:37:38.000Z","dependencies_parsed_at":"2025-02-16T18:42:43.305Z","dependency_job_id":null,"html_url":"https://github.com/carlosrs14/expression-evaluator","commit_stats":null,"previous_names":["carlosrs14/evaluarexpresiones","carlosrs14/evaluar-expresiones","carlosrs14/expression-evaluator"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/carlosrs14/expression-evaluator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carlosrs14%2Fexpression-evaluator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carlosrs14%2Fexpression-evaluator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carlosrs14%2Fexpression-evaluator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carlosrs14%2Fexpression-evaluator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/carlosrs14","download_url":"https://codeload.github.com/carlosrs14/expression-evaluator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carlosrs14%2Fexpression-evaluator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33622070,"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":["cpp","evaluate-math-expressions","maths","postfix-evaluation","postfix-notation","university-assignment"],"created_at":"2025-12-24T20:34:35.556Z","updated_at":"2026-05-28T19:02:10.894Z","avatar_url":"https://github.com/carlosrs14.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Arithmetic Expression Evaluator\n\nThis is a C++ project that evaluates infix arithmetic expressions by converting them to postfix notation (Reverse Polish Notation) for calculation.\n\n## Features\n\n- Converts infix expressions to postfix.\n- Evaluates the resulting postfix expression.\n- Supports operators: `+`, `-`, `*`, `/`, `^`.\n- Handles multi-digit and decimal numbers.\n- Includes parenthesis handling.\n- Error validation for invalid expressions (e.g., unbalanced parentheses, division by zero).\n\n## How to Compile and Run\n\nYou can compile the project using g++. Make sure you have a C++ compiler compatible with C++11 or higher.\n\n```bash\ng++ -I include example.cpp src/evaluator.cpp src/posfix-evaluator.cpp -o example\n```\nif linux user could use:\n```\ncompile.sh\n```\nOnce compiled, you can run the example program:\n\n```bash\n./example\n```\n\n## Example Usage\n\n- Example 1:\n\n![img](assets/example1.jpg)\n- Example 2:\n\n![img](assets/example2.jpg)\n\n## TODO\n1. Add trigonometrics expressions handlers\n2. Add params support\n3. Add evaluation by prefix notation\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarlosrs14%2Fexpression-evaluator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcarlosrs14%2Fexpression-evaluator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarlosrs14%2Fexpression-evaluator/lists"}