{"id":19391806,"url":"https://github.com/tteeoo/aetg","last_synced_at":"2025-02-24T21:11:54.159Z","repository":{"id":136198088,"uuid":"273998679","full_name":"tteeoo/aetg","owner":"tteeoo","description":"➗ Arithmetic expression tree generator (essentially a simple calculator in the command line)","archived":false,"fork":false,"pushed_at":"2020-06-23T00:31:53.000Z","size":28,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-07T10:10:55.891Z","etag":null,"topics":["arithmetic","calculator","command-line","go","golang","math","parser","syntax-tree","tree","tree-structure"],"latest_commit_sha":null,"homepage":"","language":"Go","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/tteeoo.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":"2020-06-21T23:22:38.000Z","updated_at":"2022-05-12T00:28:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"50391ae2-5888-4f0a-9cc4-a20728b2445e","html_url":"https://github.com/tteeoo/aetg","commit_stats":{"total_commits":28,"total_committers":1,"mean_commits":28.0,"dds":0.0,"last_synced_commit":"718849668bdce1d5924daa5a4bf1c7afae75d0e4"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tteeoo%2Faetg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tteeoo%2Faetg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tteeoo%2Faetg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tteeoo%2Faetg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tteeoo","download_url":"https://codeload.github.com/tteeoo/aetg/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240557485,"owners_count":19820360,"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":["arithmetic","calculator","command-line","go","golang","math","parser","syntax-tree","tree","tree-structure"],"created_at":"2024-11-10T10:29:17.425Z","updated_at":"2025-02-24T21:11:54.128Z","avatar_url":"https://github.com/tteeoo.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# aetg\n\nInspired by [this video](https://www.youtube.com/watch?v=7tCNu4CnjVc).\n\n`aetg` is essentially just a simple calculator with an annoying syntax.\n\nThis is mainly just a small project I made to get experience with making trees (and parsing) in Go.\n\n# Usage\n`aetg` parses arithmetic expressions into a tree of sub expressions that it then evaluates.\n\nSince I am new to writing lexers/parsers, `aetg` uses a very strict format to notate expressions that is easy to tokenize.\n\nRun the compiled `aetg` binary to enter a shell in which you can type expressions.\n\nNotation is as follows:\n\n`(\u003csub expr\u003e operator \u003csub expr\u003e)`\n\nExamples:\n\n`(5 * (3 - 6))`\n\n`(((8.11 + -7) ^ 3) - ((2 | 4) * (5.23 / (5 % 2))))`\n\nThe following operators are supported:\n* `+` Addition\n* `-` Subtraction\n* `*` Multiplication\n* `/` Division\n* `^` Exponentiation\n* `%` Modulus\n* `|` Radical (`(2 | number)` for square root, etc.)\n\n### Flags\n* `--version` Display version information\n* `--verbose` Print expressions after parsing\n* `--file \u003cfilepath\u003e` Read and run an expression from a file\n* `--expr \u003cexpression\u003e` Run a specific expression without going into the shell\n\n# Installation\n\nIt's just a single binary.\n\nYou can compile with `go build`.\n\nA [Linux binary](https://github.com/tteeoo/aetg/releases/download/0.1.0/aetg-linux) is provided.\n\n# License\nAll files are licensed under the MIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftteeoo%2Faetg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftteeoo%2Faetg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftteeoo%2Faetg/lists"}