{"id":22698079,"url":"https://github.com/quadnucyard/matoy","last_synced_at":"2025-03-29T18:28:07.425Z","repository":{"id":243378140,"uuid":"812257488","full_name":"QuadnucYard/matoy","owner":"QuadnucYard","description":"A math interpreter toy featuring matrices","archived":false,"fork":false,"pushed_at":"2024-06-16T02:59:55.000Z","size":143,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-04T19:28:53.008Z","etag":null,"topics":["compiler","cpp","matrix","parser"],"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/QuadnucYard.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-06-08T11:34:01.000Z","updated_at":"2024-06-16T02:59:57.000Z","dependencies_parsed_at":"2024-12-10T05:18:12.621Z","dependency_job_id":"30358cb2-0075-4d5a-8440-f02d2d3bbc36","html_url":"https://github.com/QuadnucYard/matoy","commit_stats":null,"previous_names":["quadnucyard/matoy"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QuadnucYard%2Fmatoy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QuadnucYard%2Fmatoy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QuadnucYard%2Fmatoy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QuadnucYard%2Fmatoy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/QuadnucYard","download_url":"https://codeload.github.com/QuadnucYard/matoy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246225799,"owners_count":20743622,"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":["compiler","cpp","matrix","parser"],"created_at":"2024-12-10T05:18:08.835Z","updated_at":"2025-03-29T18:28:07.398Z","avatar_url":"https://github.com/QuadnucYard.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MATOY\n\nNaming: **MATrix TOY** or **MAth TOY**\n\nA math interpreter toy featuring matrices written in modern CPP.\n\nThe parser implementation takes inspiration from the GREAT [Typst](https://github.com/typst/typst).\n\n## Syntax ans Usage\n\n```c\n\u003e\u003e\u003e // line comment\n\u003e\u003e\u003e /* block comment */\n\u003e\u003e\u003e 1 // int literal\n1\n\u003e\u003e\u003e 2.3 // float literal\n2.3\n\u003e\u003e\u003e true // boolean literal\ntrue\n\u003e\u003e\u003e none // none literal\n\u003e\u003e\u003e a := 3 // variable declaration and definition\n3\n\u003e\u003e\u003e a = 4 // assignment\n4\n\u003e\u003e\u003e a += 1 // compound assignment\n5\n\u003e\u003e\u003e a + (3 - 6) * -a // arithmetic operation\n20\n\u003e\u003e\u003e true and false or not true // logical operation\nfalse\n\u003e\u003e\u003e a \u003e 4 and a \u003c= 5 // compare\nfalse\n\u003e\u003e\u003e a != none // compare with none\ntrue\n\u003e\u003e\u003e A := [1, 2; 3, 4] // matrix\n[1, 2; 3, 4]\n\u003e\u003e\u003e A.T // transposed\n[1, 3; 2, 4]\n\u003e\u003e\u003e A.a // field access\nerror: source:0:3: type matrix does not contain field \"a\"\n\u003e\u003e\u003e B := [1\n  \u003e ,\n  \u003e (3 +\n  \u003e 4)\n  \u003e ] // multi-line input\n[1, 7]\n```\n\nIf the input with error only has expectation error at the end, you can continue to input the next line.\n\n## Development\n\nRequires: XMake, clang 19.0 with latest C++ features\n\nRecommends: clang-format 19.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquadnucyard%2Fmatoy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fquadnucyard%2Fmatoy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquadnucyard%2Fmatoy/lists"}