{"id":15398071,"url":"https://github.com/farzonl/calc-repl","last_synced_at":"2026-01-22T12:49:58.131Z","repository":{"id":69082502,"uuid":"205522146","full_name":"farzonl/calc-repl","owner":"farzonl","description":"A cli calculator written with flex and bison.","archived":false,"fork":false,"pushed_at":"2019-08-31T09:29:15.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-12T02:14:11.120Z","etag":null,"topics":["bison","flex","repl"],"latest_commit_sha":null,"homepage":null,"language":"Yacc","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/farzonl.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}},"created_at":"2019-08-31T09:11:26.000Z","updated_at":"2019-08-31T09:29:59.000Z","dependencies_parsed_at":"2023-02-22T06:00:28.760Z","dependency_job_id":null,"html_url":"https://github.com/farzonl/calc-repl","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farzonl%2Fcalc-repl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farzonl%2Fcalc-repl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farzonl%2Fcalc-repl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farzonl%2Fcalc-repl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/farzonl","download_url":"https://codeload.github.com/farzonl/calc-repl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248505925,"owners_count":21115354,"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":["bison","flex","repl"],"created_at":"2024-10-01T15:40:44.316Z","updated_at":"2026-01-22T12:49:53.097Z","avatar_url":"https://github.com/farzonl.png","language":"Yacc","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Calc-repl\nA calculator reple with multi-type (int, float, \u0026 boolean) support, conditional exection, and assignment.\n\n## Demo\ncoming soon...\n\n## Dependencies\n- flex\n- bison\n### install instructions mac\n```\nbrew install flex bison\n```\n## Build instructions\n```\nmake\n```\n## Run instructions\n```\n./calc\n```\n\n## expression examples:\n### Assignment\n```\na = 1\nb = 2.2\nc = true\nd = false\n```\n### Integer Expressions\n```\na = 1\n1 + a * 3 - 2\nc = a * 3 + 4\n```\n### Mixed Expressions\n```\na = 1\nb = 1.1 + a\nc = 1.1 + 1\n1 + 1.1\n1.1 + 1 / 2\n```\n### Boolean expressions\n```\ntrue\n!true\ntrue == !false\na = false\ntrue == a\na = 1==1.0\n```\n### Conditional expressions\n```\na = false\nif(a) {f = 1}\nif(!a) {f = 1} else { f = 2}\nif(!a) { 1 + 2 * 3} else { f = 2 * 4}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffarzonl%2Fcalc-repl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffarzonl%2Fcalc-repl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffarzonl%2Fcalc-repl/lists"}