{"id":31853318,"url":"https://github.com/htogta/crotchet","last_synced_at":"2025-10-12T13:26:24.331Z","repository":{"id":267855675,"uuid":"880096711","full_name":"htogta/crotchet","owner":"htogta","description":"A LISP dialect with less `Shift`.","archived":false,"fork":false,"pushed_at":"2024-12-17T05:18:31.000Z","size":54,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-09T03:25:51.518Z","etag":null,"topics":["interpreter","language","lisp","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/htogta.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-10-29T05:24:55.000Z","updated_at":"2024-12-17T05:18:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"23b93311-41c4-4925-9bad-18dfd8799d3c","html_url":"https://github.com/htogta/crotchet","commit_stats":null,"previous_names":["goneal26/crotchet","htogta/crotchet"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/htogta/crotchet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/htogta%2Fcrotchet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/htogta%2Fcrotchet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/htogta%2Fcrotchet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/htogta%2Fcrotchet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/htogta","download_url":"https://codeload.github.com/htogta/crotchet/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/htogta%2Fcrotchet/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279011466,"owners_count":26084947,"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-10-12T02:00:06.719Z","response_time":53,"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":["interpreter","language","lisp","rust"],"created_at":"2025-10-12T13:26:23.226Z","updated_at":"2025-10-12T13:26:24.320Z","avatar_url":"https://github.com/htogta.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# crotchet\n\nA LISP dialect with less `Shift`.\n\nI wanted to play around with LISP diaclects, but didn't like having to hold \n`Shift` to type `(` and `)` all the time. So, this is a minimalist LISP subset \nbased on [Scheme](https://en.wikipedia.org/wiki/Scheme_(programming_language)) \nthat uses `[` and `]` instead.\n\nThe name *crotchet* comes from an old printing term for a square bracket.\n\nThis was originally written as my final project for a Rust programming course.\n\nThe more recent versions of the codebase are based somewhat on [lisp-rs](https://github.com/vishpat/lisp-rs),\nwith the earliest prototypes based on [Risp](https://stopa.io/post/222).\n\n## Features\n\n- 64-bit Floating Point Arithmetic (with help from `round`)\n- Variables and Constants (`let` and `set`)\n- Lambda Functions and Closures (`fn`)\n- Lists and list methods (`list`, `first`, `rest`, and `len`)\n- Input/Output (`print` and `input`)\n- Random Number Generation (`rand`)\n- Loops (`while`)\n\nFeel free to check out `example.crl` or `guessing_game.crl` for more examples.\n\n## Installation\n\nTo build crotchet, you'll need [Rust](https://www.rust-lang.org/) installed. \n\nClone the repository with `git clone` and then build the interpreter:\n\n```\ncd crotchet\ncargo build --release\n```\n\nWithin the repository directory the executable can be found at `/target/release/crotchet`.\n\nFrom here you can add it to your `$PATH` however you prefer; personally I use a\nsymlink.\n\n*Note:* If you use the [micro](https://github.com/zyedidia/micro) text editor like \nI do, enjoy the syntax highlighting file in `crotchet.yaml`.\n\n## Usage\n\nTo get the current version, use the `--version` flag.\n\nTo print the help/usage info, use the `--help` flag.\n\n### REPL\n\nTo start an interactive session, run:\n\n```\n./target/release/crotchet\n```\n\nor simply `crotchet`.\n\n### Scripts\n\nTo execute a crotchet script, provide the file as an argument:\n\n```\n./target/release/crotchet example.crl\n```\n\nor simply `crotchet example.crl`.\n\n## Contributing\n\nContributions are welcome- feel free to fork and submit pull requests.\n\n## License\n\nThis project is licensed under the MIT License. See the `LICENSE` file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhtogta%2Fcrotchet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhtogta%2Fcrotchet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhtogta%2Fcrotchet/lists"}