{"id":25922323,"url":"https://github.com/francescoapophis/calc-parser","last_synced_at":"2025-03-03T16:18:20.760Z","repository":{"id":255146465,"uuid":"741007698","full_name":"francescoApophis/calc-parser","owner":"francescoApophis","description":"Small parser for simple math expressions.","archived":false,"fork":false,"pushed_at":"2024-09-06T13:57:10.000Z","size":43,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-09-06T16:16:23.091Z","etag":null,"topics":["lexer-parser","parsing","python","python3"],"latest_commit_sha":null,"homepage":"","language":"Python","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/francescoApophis.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}},"created_at":"2024-01-09T14:07:48.000Z","updated_at":"2024-09-06T13:57:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"4d52d8ee-fba2-4d1c-bdad-62b06b736312","html_url":"https://github.com/francescoApophis/calc-parser","commit_stats":null,"previous_names":["francescoapophis/calc-parser"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/francescoApophis%2Fcalc-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/francescoApophis%2Fcalc-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/francescoApophis%2Fcalc-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/francescoApophis%2Fcalc-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/francescoApophis","download_url":"https://codeload.github.com/francescoApophis/calc-parser/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241696141,"owners_count":20004748,"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":["lexer-parser","parsing","python","python3"],"created_at":"2025-03-03T16:18:20.285Z","updated_at":"2025-03-03T16:18:20.754Z","avatar_url":"https://github.com/francescoApophis.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# calc-parser\n\nSmall parser for simple math expressions. Built to learn about how \nlexing, parsing and operator precendence work.\n\nIt uses the '[precedence climbing method](https://en.wikipedia.org/wiki/Operator-precedence_parser)'.\nAgain, this is for learning purposes and to get a general idea of how this process works, so it may not\nuse the best algorithm or the best implentation. \n\nSupported:\n- [x] addition, \n- [x] subtraction, \n- [x] multiplication\n- [x] division\n- [x] parentheses \n\nSoon to be implemented:\n- [ ] negative and decimal numbers\n- [ ] exponentiation\n\n## Usage\n\n    python3 main.py \u003cflag\u003e \u003cexpr\u003e\n    python3 main.py \u003cflag\u003e '\u003cexpr\u003e' (to use spacing inside the expression)\n\n    flags:\n        -c    calculate and print result from string expression\n        -t    generate and print tree from expression \n        -tc   both previous flags\n        -ct   calculate and print result from tree, for debugging tree\n        -all  all commands at the same time\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrancescoapophis%2Fcalc-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrancescoapophis%2Fcalc-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrancescoapophis%2Fcalc-parser/lists"}