{"id":17246913,"url":"https://github.com/i-redbyte/calculator","last_synced_at":"2025-08-31T20:34:09.109Z","repository":{"id":53807571,"uuid":"346137301","full_name":"i-redbyte/calculator","owner":"i-redbyte","description":"Simple console calculator using abstract syntax tree(AST) and recursive descent","archived":false,"fork":false,"pushed_at":"2024-09-04T14:44:09.000Z","size":100,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-19T07:05:52.670Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/i-redbyte.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,"zenodo":null}},"created_at":"2021-03-09T20:35:49.000Z","updated_at":"2024-09-12T08:06:17.000Z","dependencies_parsed_at":"2025-04-14T04:41:35.023Z","dependency_job_id":"24c250b5-a940-4137-b9e6-16e48387a3a1","html_url":"https://github.com/i-redbyte/calculator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/i-redbyte/calculator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/i-redbyte%2Fcalculator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/i-redbyte%2Fcalculator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/i-redbyte%2Fcalculator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/i-redbyte%2Fcalculator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/i-redbyte","download_url":"https://codeload.github.com/i-redbyte/calculator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/i-redbyte%2Fcalculator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273035350,"owners_count":25034567,"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","status":"online","status_checked_at":"2025-08-31T02:00:09.071Z","response_time":79,"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":[],"created_at":"2024-10-15T06:35:26.789Z","updated_at":"2025-08-31T20:34:09.083Z","avatar_url":"https://github.com/i-redbyte.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"## An example of recursive descent for a calculator\n\nAn expression tree is something like this:\n![Tree](image/expression_tree.png)\n\nLinks:\n\n- https://ps-group.github.io/compilers/simple_recursive_parser.html\n- https://en.wikipedia.org/wiki/Recursive_descent_parser\n- http://www.craftinginterpreters.com\n- https://rosettacode.org/wiki/Recursive_descent_parser_generator\n\n## About program\n\nThis is an example of a simple console calculator implemented through a Recursive Descent Parser. All the usual operator\nprecedence and associativity rules were followed. The calculator supports basic arithmetic operations [+,-,*,/,^] and\nparentheses.\n\nExample:\n\n```\n\u003e\u003e\u003e 2+2\nResult: 4\n\u003e\u003e\u003e 5 - 100 + 4\nResult: -91\n\u003e\u003e\u003e 2^(3+2)\nResult: 32\n\u003e\u003e\u003e (1+2)/(10-7)\nResult: 1\n\u003e\u003e\u003e 8-9-(1\nException in thread \"main\" expression.ParseException:  ) not found.\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fi-redbyte%2Fcalculator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fi-redbyte%2Fcalculator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fi-redbyte%2Fcalculator/lists"}