{"id":13782585,"url":"https://github.com/furuame/Arithmetic-Interpreter","last_synced_at":"2025-05-11T15:32:38.337Z","repository":{"id":216004626,"uuid":"110248283","full_name":"furuame/Arithmetic-Interpreter","owner":"furuame","description":null,"archived":false,"fork":false,"pushed_at":"2018-03-01T12:35:36.000Z","size":14,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-15T00:02:39.281Z","etag":null,"topics":["interpreter"],"latest_commit_sha":null,"homepage":null,"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/furuame.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}},"created_at":"2017-11-10T13:10:38.000Z","updated_at":"2018-03-20T07:46:41.000Z","dependencies_parsed_at":"2024-01-07T23:04:08.340Z","dependency_job_id":"1575f473-ca46-4094-a592-667b9d610187","html_url":"https://github.com/furuame/Arithmetic-Interpreter","commit_stats":null,"previous_names":["furuame/arithmetic-interpreter","2henwei/arithmetic-interpreter"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/furuame%2FArithmetic-Interpreter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/furuame%2FArithmetic-Interpreter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/furuame%2FArithmetic-Interpreter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/furuame%2FArithmetic-Interpreter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/furuame","download_url":"https://codeload.github.com/furuame/Arithmetic-Interpreter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253588775,"owners_count":21932324,"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":["interpreter"],"created_at":"2024-08-03T18:01:39.557Z","updated_at":"2025-05-11T15:32:37.975Z","avatar_url":"https://github.com/furuame.png","language":"C","funding_links":[],"categories":["C"],"sub_categories":[],"readme":"# Arithmetic Interpreter\r\nThis is a simple interpreter to calculate arithmetic expression referenced from [Ruslan's Blog](https://ruslanspivak.com).\r\n\r\n## Build\r\n* ```$ make main```\r\n\r\n## Need to know\r\n* This interpreter can execute mathematical expressions like '34+7-5+3' or '2 * 52 / 8', etc.\r\n* The supported operations are addition (+), subtraction (-), multiplication (*), division (/), power (^)\r\n* The operations are executed from left to right, i.e. the interpreter doesn't give priority to multiplications, etc.\r\n* Support Precedence and Parentheses.\r\n\r\n## Limits\r\n* Number in the interpreter is handled with integer, so error exists when expression has float-point operation.\r\n\r\n## Examples\r\n```\r\ncal\u003e\u003e 2 + 5 - 2 /5\r\n1\r\n\r\ncal\u003e\u003e 2 - 53 * 2\r\n-102\r\n\r\ncal\u003e\u003e 10+3-44*2\r\n-62\r\n\r\ncal\u003e\u003e 2 ^ 5 - 1\r\n31\r\n\r\ncal\u003e\u003e 2 + - - 1\r\n3\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuruame%2FArithmetic-Interpreter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffuruame%2FArithmetic-Interpreter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuruame%2FArithmetic-Interpreter/lists"}