{"id":27273369,"url":"https://github.com/ayberkt/tinyrw","last_synced_at":"2026-01-31T19:34:09.017Z","repository":{"id":151591921,"uuid":"97256325","full_name":"ayberkt/tinyrw","owner":"ayberkt","description":"A toy language based on rewriting using code from Baader and Nipkow.","archived":false,"fork":false,"pushed_at":"2017-07-16T20:44:32.000Z","size":15,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-13T13:46:41.784Z","etag":null,"topics":["algebra","maude","rewrite-system","rewriting","term-rewriting"],"latest_commit_sha":null,"homepage":"","language":"Standard ML","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/ayberkt.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,"zenodo":null}},"created_at":"2017-07-14T17:07:36.000Z","updated_at":"2020-01-21T16:42:06.000Z","dependencies_parsed_at":"2023-04-28T09:44:27.019Z","dependency_job_id":null,"html_url":"https://github.com/ayberkt/tinyrw","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ayberkt/tinyrw","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayberkt%2Ftinyrw","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayberkt%2Ftinyrw/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayberkt%2Ftinyrw/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayberkt%2Ftinyrw/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ayberkt","download_url":"https://codeload.github.com/ayberkt/tinyrw/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ayberkt%2Ftinyrw/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28951437,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T18:30:42.805Z","status":"ssl_error","status_checked_at":"2026-01-31T18:30:19.593Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["algebra","maude","rewrite-system","rewriting","term-rewriting"],"created_at":"2025-04-11T14:25:51.847Z","updated_at":"2026-01-31T19:34:08.999Z","avatar_url":"https://github.com/ayberkt.png","language":"Standard ML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tinyrw\n\n**tinyrw** is a toy language for defining [rewriting systems](https://en.wikipedia.org/wiki/Rewriting) and executing them.\n\n## Building\n\nTo build, you need the [`smlnj`](http://www.smlnj.org/) compiler. Given that you have it installed, run\n```\nsml -m main.cm\n```\nYou may then run `script/repl.sh` to start a REPL which is currently the only way to use **tinyrw**.\n\n## Usage\n\nLet us define basic natural number arithmetic to illustrate the usage. We first run `./script/repl.sh` to get the repl started.\n\nTo define a new rule, we use the `:rule` command. There are two rewrite\nrules needed to define addition on natural numbers:\n```\n\u003e :rule plus(z, Y) =\u003e Y\nNew rule: plus(z, Y@0)  ---\u003e  Y@0.\n\u003e :rule plus(s(X), Y) =\u003e s(plus(X, Y))\nNew rule: plus(s(X@1), Y@0)  ---\u003e  s(plus(X@1, Y@0)).\n```\n\nTo keep rewriting a term until no further rules apply, we have a command\n`:norm` for normalizing terms.\n```\n\u003e :norm plus(s(s(s(z))), s(s(s(z))))\ns(s(s(s(s(s(z))))))\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fayberkt%2Ftinyrw","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fayberkt%2Ftinyrw","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fayberkt%2Ftinyrw/lists"}