{"id":32715665,"url":"https://github.com/linsyking/meow-lang","last_synced_at":"2025-11-02T14:05:15.701Z","repository":{"id":193630628,"uuid":"622559068","full_name":"linsyking/meow-lang","owner":"linsyking","description":"Meow~ meow~","archived":false,"fork":false,"pushed_at":"2023-09-09T04:58:56.000Z","size":89,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-20T00:54:55.936Z","etag":null,"topics":["programming-language"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/linsyking.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}},"created_at":"2023-04-02T13:28:45.000Z","updated_at":"2023-12-04T21:02:35.000Z","dependencies_parsed_at":"2023-09-09T05:46:19.933Z","dependency_job_id":null,"html_url":"https://github.com/linsyking/meow-lang","commit_stats":null,"previous_names":["linsyking/meow-lang"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/linsyking/meow-lang","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linsyking%2Fmeow-lang","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linsyking%2Fmeow-lang/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linsyking%2Fmeow-lang/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linsyking%2Fmeow-lang/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/linsyking","download_url":"https://codeload.github.com/linsyking/meow-lang/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linsyking%2Fmeow-lang/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":282299374,"owners_count":26646668,"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","status":"online","status_checked_at":"2025-11-02T02:00:06.609Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["programming-language"],"created_at":"2025-11-02T14:05:03.756Z","updated_at":"2025-11-02T14:05:15.691Z","avatar_url":"https://github.com/linsyking.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Meow lang\n\nMeow lang is a programming language that compiles to *catlet*, another language that is hard to read but easy to execute. Meow's syntax is easier to read than catlet, but meow and catlet are equivalent.\n\nThe **only** operation is doing \"let\" (cat can be implemented by let).\n\nIts main design purpose is to do experiments with \"string substitution\".\n\n## Formal Definition\n\nCurrently the definition of substitution of strings are defined by the built-in `replace` function of `String`.\n\nIt's not allowed to do $[X/\\epsilon]Y$ (replace empty string with some string).\n\n## Concepts\n\nThere are **no** functions in Meow. Instead, we have *macros*. A macro is a piece of code that can be evaluated to a string.\n\nThe only available data type is **String**. (However, you can encode other data types inside String)\n\n## Code Style\n\nMeow:\n\n```meow\nencode(s) {\n    var rep = {\n        \"$\" = \"\\$\";\n        \"#\" = \"\\#\";\n        \"\\\" = \"\\\\\";\n        s\n    };\n    \"#$\"+ rep +\"$#\"\n}\n\nfib(x) {\n    if(\n        eq0(x),\n        0(),\n        if(\n            leq(x, 2()),\n            1(),\n            add(\n                fib(pred(x)),\n                fib(pred(pred(x)))\n            )\n        )\n    )\n}\n```\n\nCatlet (Compiled result):\n\n```catlet\nencode s = cat cat \"#$\" let \"$\" \"\\$\" let \"#\" \"\\#\" let \"\\\" \"\\\\\" s \"$#\"\nfib x = if eq0 x 0 if leq x 2 1 add fib pred x fib pred pred x\n```\n\n## Simple Start\n\n```bash\n# First clone this repo and open it\n\ncargo run repl\n\n# Now you can use the REPL to evaluate (catlet) expressions\n```\n\nExample:\n\n```\n\u003e \"abc\"\nabc\n\u003e cat \"hello \" \"world\"\nhello world\n\u003e let \"apple\" \"world\" \"hello apple\"\nhello world\n```\n\n## Tutorials\n\n- [Syntax](./docs/Syntax.md)\n- [Encoding](./docs/Encoding.md)\n- [Double Substitution Lemma](./docs/DSL.md)\n- [Multiple Replacement](./docs/MR.md)\n\n## Examples\n\nSee [syn.meow](./examples/syn.meow), which has compiled result [syn.cat](./examples/syn.cat).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinsyking%2Fmeow-lang","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinsyking%2Fmeow-lang","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinsyking%2Fmeow-lang/lists"}