{"id":24961846,"url":"https://github.com/marcos-venicius/mca","last_synced_at":"2025-03-28T22:29:18.072Z","repository":{"id":275298997,"uuid":"925684994","full_name":"marcos-venicius/MCA","owner":"marcos-venicius","description":"It's a math expression compiler/evaluator to asm.","archived":false,"fork":false,"pushed_at":"2025-02-11T19:16:18.000Z","size":18,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-11T20:26:24.667Z","etag":null,"topics":["asm","c","clang","compiler","gcc","interpreter","math"],"latest_commit_sha":null,"homepage":"","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/marcos-venicius.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":"2025-02-01T13:44:46.000Z","updated_at":"2025-02-11T19:16:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"351b0b09-ee3a-4361-8425-0b9e34e880c9","html_url":"https://github.com/marcos-venicius/MCA","commit_stats":null,"previous_names":["marcos-venicius/mca"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcos-venicius%2FMCA","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcos-venicius%2FMCA/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcos-venicius%2FMCA/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcos-venicius%2FMCA/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marcos-venicius","download_url":"https://codeload.github.com/marcos-venicius/MCA/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246108770,"owners_count":20724789,"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":["asm","c","clang","compiler","gcc","interpreter","math"],"created_at":"2025-02-03T08:57:52.269Z","updated_at":"2025-03-28T22:29:18.067Z","avatar_url":"https://github.com/marcos-venicius.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MCA\n\n![image](https://github.com/user-attachments/assets/50a4b7c1-8b11-4aa6-acfd-3a368a365f54)\n\nIt's a math expression evaluator/compiler to asm.\n\nBasically, you can pass programming language math as a string, and get back a file in asm that do this math or just evaluate (which is very useful).\n\nThe name:\n\n- **M** math\n- **C** compiler\n- **A** asm\n\n![error handling](https://github.com/user-attachments/assets/5d7906aa-09e9-4c29-a8b4-b8422a441b7c \"error handling\")\n\n## Available operators\n\n- `*` times\n- `-` subtract\n- `+` sum\n- `/` divide\n- `%` modules\n- `^` power\n\nall the numbers will be handled as C Doubles.\n\n## Examples\n\n```\n10 + 10\n```\n\n```\n2 + 2 / 2\n```\n\n```\n(2 + 2) / 2\n```\n\n```\n2 * 2 / (2 + (2 - 3))\n```\n\n```\n5.5 * 2 / 3\n```\n\n## We have some bugs yet\n\nI'm not properly parsing the tokens before mount the ast, so expressions like `2 * 2 - 2 2 2` will kinda work, but with the wrong result.\nOr for example `2 (^ 2 + 2)`, will return a wrong result without any errors.\n\n## Debugging\n\nyou can export `MCA_LOG_ENABLED` as `1` to enable logging.\n\n```bash\nexport MCA_LOG_ENABLED=1\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcos-venicius%2Fmca","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcos-venicius%2Fmca","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcos-venicius%2Fmca/lists"}