{"id":16730933,"url":"https://github.com/0x0f0f0f/yasih","last_synced_at":"2025-04-10T11:13:10.523Z","repository":{"id":154393042,"uuid":"198434591","full_name":"0x0f0f0f/yasih","owner":"0x0f0f0f","description":"Yet another Scheme implemented in Haskell","archived":false,"fork":false,"pushed_at":"2019-12-21T11:07:44.000Z","size":248,"stargazers_count":20,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T10:05:53.410Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/0x0f0f0f.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog.md","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":"ROADMAP.md","authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-07-23T13:18:36.000Z","updated_at":"2023-11-29T06:51:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"17349619-a468-434f-b890-19ba095eda54","html_url":"https://github.com/0x0f0f0f/yasih","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0x0f0f0f%2Fyasih","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0x0f0f0f%2Fyasih/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0x0f0f0f%2Fyasih/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0x0f0f0f%2Fyasih/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0x0f0f0f","download_url":"https://codeload.github.com/0x0f0f0f/yasih/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248208566,"owners_count":21065203,"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":[],"created_at":"2024-10-12T23:35:17.434Z","updated_at":"2025-04-10T11:13:10.513Z","avatar_url":"https://github.com/0x0f0f0f.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# yasih - Yet Another Scheme in Haskell\n\n![Screenshot](screenshot.png)\n\nA small scheme interpreter written following the tutorial book [\"Write Yourself a Scheme in 48 Hours\"](https://en.wikibooks.org/wiki/Write_Yourself_a_Scheme_in_48_Hours) to learn both Haskell and Scheme in detail.\n**Discontinued**. Yasih has been a fun learning experiment!\n\n## Installation\n\nClone the repo\n```sh\ngit clone https://github.com/0x0f0f0f/yasih\ncd yasih\n```\n\nInstall\n\n```sh\n# Compile and the binary\nstack install\n# Copy the standard library to an include path\nmkdir -p ~/.local/lib/yasih/\ncp stdlib/stdlib.scm ~/.local/lib/yasih/stlib.scm\n```\n\n\n## Usage\n\nThe binary `yasih` accepts a program as the first\nargument, if no argument is passed then a REPL will be started.\nIf `-e` is passed as an option the first argument will be evaluated as an expression.\n\n```sh \nyasih -e \"(+ 2 3)\"\n5\n```\n\nUsage of [rlwrap](https://github.com/hanslub42/rlwrap) when using the REPL is suggested, it enables \nreadline features such as arrow keys in the interpreter and bash-like keybindings \n\n```lisp\nrlwrap yasih\nλ\u003e (define (map f l) (if (null? l) l (cons (f (car l)) (map f (cdr l)))))\n(lambda (\"f\" \"l\") ...)\nλ\u003e (map (lambda (x) (+ 1 x)) '(1 2 3 4))\n(2 3 4 5)\n```\n\n# Documentation\n\nCheck out the docs\n\n# Examples\n\nTo try the examples in the `examples` directory run:\n\n```\ncd examples\nrlwrap yasih file.scm\n```\n\n# Testing\n\nThere are work in progress integration tests.\n\nTo test the R5RS coverage status run\n```\nSILENT=true ./integration-tests/r5rs-coverage.sh\n```\n\nTo run general integration tests run\n```\nSILENT=true ./integration-tests/integration-test.sh\n```\n\n## How to forkbomb :)\n```\n((lambda (x) (x (x x))) (lambda (x) (x (x x))))\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0x0f0f0f%2Fyasih","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0x0f0f0f%2Fyasih","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0x0f0f0f%2Fyasih/lists"}