{"id":21466414,"url":"https://github.com/CSaintos/Mua","last_synced_at":"2025-07-15T05:30:45.754Z","repository":{"id":41549925,"uuid":"493844311","full_name":"CSaintos/STEM","owner":"CSaintos","description":"STEM Educational Calculator","archived":false,"fork":false,"pushed_at":"2024-11-15T03:43:56.000Z","size":1794,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-15T04:25:56.278Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CSaintos.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":"2022-05-18T22:30:50.000Z","updated_at":"2024-11-15T03:44:00.000Z","dependencies_parsed_at":"2024-05-18T16:45:10.233Z","dependency_job_id":"11242daf-c926-47be-a2d0-3858f2c75e4a","html_url":"https://github.com/CSaintos/STEM","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/CSaintos%2FSTEM","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CSaintos%2FSTEM/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CSaintos%2FSTEM/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CSaintos%2FSTEM/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CSaintos","download_url":"https://codeload.github.com/CSaintos/STEM/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226017193,"owners_count":17560466,"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":[],"created_at":"2024-11-23T08:14:05.687Z","updated_at":"2025-07-15T05:30:45.726Z","avatar_url":"https://github.com/CSaintos.png","language":"C++","readme":"\u003ch1 style=\"font-size:60px\"\u003e \u0026#956;\u0026#965;\u0026#945; \u003c/h1\u003e\n\nMua is a \u003cspan style=\"color:gray\"\u003e(step-by-step, cli-based, arithmetic)\u003c/span\u003e calculator.\n\n![repl demo](./.devcontainer/repl_demo.gif)\n\n## Table of Contents\n- [Getting Started](#getting-started)\n- [Documentation](#documentation)\n- [Building Mua](#building-mua)\n\n## Getting Started\n- To download Mua, go to [Releases](https://github.com/CSaintos/Mua/releases)\n- Extract the Mua 7z\n  - MacOS only: Since MacOS has Gatekeeper, and my app hasn't been notarized by Apple yet. Upon extracting, the file permissions will be set to read-only. You'll want to do a quick `chmod 755 *` inside the mua-macos directory to enable permissions.  \n- Install/Place Mua anywhere you'd like on your machine, and to make it easily accessible, add it to your system's or shell's environment path.\n\n## Running Mua\n- In your shell: `./muac -h` for how to run mua\n### Mua's two modes\n##### Repl mode\n- Start repl mode with:\n`./muac`\n- Exit repl mode: `exit[];` on an empty line.\n##### File mode\n- Evaluate mua file: `./muac \u003cpath-to-file\u003e.mua [-o \u003coutput-file-path\u003e.muar]`\n  - Brackets mean optional argument\n- Ex:\n  - `./muac ./hello_world.mua`\n  - `./muac ./hello_world.mua -o ./hello_world.muar`\n\n## Documentation\n### Arithmetic Operators\n| Operation | Example | Result |\n| --- | --- | --- |\n| Addition | `1 + 1;` | `2;` |\n| Subtraction | `1-1;` | `0;` |\n| Multiplication | `1 * 1;` | `1;` |\n| Division | `-1/(-1);` | `1;` |\n| Modulation | `4%3;` | `1;` |\n| Exponentiation | `2^3;` | `8;` |\n| Radication | `4^(1/2);` | `2;` |\n| Parentheses | `5-(8-3)` | `0;` |\n### Misc\n- Comments:\n`// A line comment`\n\n## Building Mua\n### Requirements\n- You will need GCC v11+ or Clang v17+.\n  - At a minimum must support c++20\n- You will need GNU-make 4.4.1+\n- If you are on Windows, you can download these packages through [MSYS2](https://www.msys2.org/)\n- Make sure to add the installed packages to your system/shell environment path\n### Clone\n- clone this repo into an empty directory `git clone https://github.com/CSaintos/Mua.git`\n### Build\n- Within that same directory, run `make` following one of the options for your operating system below\n##### Windows Build\n- `make -j SYS=Windows`\n##### Linux Build\n- `make -j SYS=Linux`\n\nor\n\n- `make -j`\n##### MacOS Build\n- `make -j SYS=OSX CXX_VERSION=c++20`\n\nor\n\n- `make -j SYS=OSX`\n  - By default the CXX_VERSION is c++23 and may not work on your machine with the current version of gcc supported by macos\n\n#### Executable\n- Once completed, the executable is stored in `./build/mua/main/muac`\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCSaintos%2FMua","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FCSaintos%2FMua","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCSaintos%2FMua/lists"}