{"id":28778640,"url":"https://github.com/thyeem/slisp","last_synced_at":"2025-06-28T07:35:12.374Z","repository":{"id":82386676,"uuid":"558164162","full_name":"thyeem/slisp","owner":"thyeem","description":"A LISP written in Haskell","archived":false,"fork":false,"pushed_at":"2024-03-26T18:48:20.000Z","size":10824,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-03-26T19:52:49.450Z","etag":null,"topics":["language","lisp","lisp-dialect"],"latest_commit_sha":null,"homepage":"","language":"Haskell","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/thyeem.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":null,"authors":null,"dei":null}},"created_at":"2022-10-27T02:27:38.000Z","updated_at":"2022-11-02T17:51:06.000Z","dependencies_parsed_at":"2023-03-12T15:33:41.329Z","dependency_job_id":null,"html_url":"https://github.com/thyeem/slisp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thyeem/slisp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thyeem%2Fslisp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thyeem%2Fslisp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thyeem%2Fslisp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thyeem%2Fslisp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thyeem","download_url":"https://codeload.github.com/thyeem/slisp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thyeem%2Fslisp/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260400622,"owners_count":23003440,"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":["language","lisp","lisp-dialect"],"created_at":"2025-06-17T16:42:28.723Z","updated_at":"2025-06-28T07:35:12.349Z","avatar_url":"https://github.com/thyeem.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sLISP\n\n`sLISP` is a pure-functional `LISP` implementation in `Haskell`.\nInitially, it started as a simple _S-expression_ parser to demonstrate how the [`s`](https://github.com/thyeem/s) nicely works, but decided to go a little more.\n\nI hope that this **1k+ lines of code** will be one of the simplest and _the most readable LISP implementation_ compared to capability it has.\n\n## Features\n  - Based on [`s`](https://github.com/thyeem/s) (plays all roles in the `R` part in the REPL)\n  - Pure-functional (_NO reference object used like `IORef`_)\n  - Coded with a very few principles and patterns \n    \u003e each bind (`\u003e\u003e=`) exactly corresponds to a single state transition\n  - Almost compatible with `CLISP` main built-in functions (in progress)\n\n## Build\n```bash\n$ git clone https://github.com/thyeem/slisp\n\n# build: this yields ~80kB binary 'sl'\n$ stack build\n\n# run sLISP REPL\n$ stack run\n\n# test\n$ stack test\n\n# documentation\n$ stack haddock --open slisp \n```\n\n## Demo\n\u003cimg src=\"demo.gif\" width=\"480\" /\u003e\n\n## REPL\n`sLISP` __REPL__ supports simple but some useful modes. Each mode is switched right after key input as shown below.\n\n```lisp\n;; one semicolon -\u003e paste-mode (multi-line input)\nsLISP\u003e ;\n\n;; two semicolons -\u003e debug-mode (describe S-expression with hierarchical structure)\nsLISP\u003e ;;\n\n;; three semicolons -\u003e view the REPL environment (symbol-data map)\nsLISP\u003e ;;;\n\n;; four semicolons -\u003e list all built-in functions\nsLISP\u003e ;;;;\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthyeem%2Fslisp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthyeem%2Fslisp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthyeem%2Fslisp/lists"}