{"id":20527302,"url":"https://github.com/raulil/bali","last_synced_at":"2026-04-15T00:31:21.276Z","repository":{"id":218787174,"uuid":"747189760","full_name":"RauliL/bali","owner":"RauliL","description":"Barely a Lisp interpreter","archived":false,"fork":false,"pushed_at":"2024-03-28T16:37:41.000Z","size":68,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-06T01:49:11.307Z","etag":null,"topics":["lisp-interpreter","programming-exercise"],"latest_commit_sha":null,"homepage":"","language":"C++","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/RauliL.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-01-23T12:55:54.000Z","updated_at":"2024-01-23T19:12:48.000Z","dependencies_parsed_at":"2024-02-10T14:25:15.500Z","dependency_job_id":"65fa8aa5-75f9-4a23-9072-dffea7f45d4b","html_url":"https://github.com/RauliL/bali","commit_stats":null,"previous_names":["raulil/bali"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/RauliL/bali","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RauliL%2Fbali","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RauliL%2Fbali/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RauliL%2Fbali/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RauliL%2Fbali/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RauliL","download_url":"https://codeload.github.com/RauliL/bali/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RauliL%2Fbali/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31821388,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T18:05:02.291Z","status":"ssl_error","status_checked_at":"2026-04-14T18:05:01.765Z","response_time":153,"last_error":"SSL_read: 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":["lisp-interpreter","programming-exercise"],"created_at":"2024-11-15T23:18:12.012Z","updated_at":"2026-04-15T00:31:21.251Z","avatar_url":"https://github.com/RauliL.png","language":"C++","readme":"# Barely a Lisp interpreter\n\nMinimal [Lisp] interpreter implementation that I wrote just for fun and to\ntest some things. It only has two data types: atoms and lists. It does not\nsupport anything useful but is instead just a list processor.\n\n## Design\n\nOnly three data types are available:\n\n- Atoms are just pieces of text that are handled as boolean values, numbers\n  or strings depending on the context.\n- Lists that are handled as lists of data or function calls depending on the\n  context.\n- Functions that can be either anonymous or callable by name.\n- Optional [M-expression] support.\n\nSpecial atom called `nil` is treated as an empty/missing value as well as falsy\nboolean value. In boolean context every other value than `nil` is treated as\ntruthy value.\n\n## How to compile\n\nMake sure you have [CMake] and C++11 compiler installed.\n\n```shell\n$ git clone https://github.com/RauliL/bali.git\n$ cd bali\n$ git submodule update --init\n$ mkdir build\n$ cd build\n$ cmake ..\n$ cmake --build .\n```\n\n## How to use\n\nEither run the `bali` executable with an path to a file that contains Lisp\nsource code, or just `bali` without a filename to start [REPL].\n\n## Builtin functions / operators\n\nNumeric: `+`, `-`, `*`, `/`, `=`, `\u003c`, `\u003e`, `\u003c=`, `\u003e=`.\n\nList: `length`, `cons`, `car`, `cdr`, `list`, `append`, `for-each`, `filter`,\n`map`.\n\nBoolean: `not`, `and`, `or`, `if`.\n\nVariables: `setq`, `let`.\n\nFunctions: `apply`, `defun`, `lambda`, `return`.\n\nUtilities: `quote`, `load`, `write`.\n\n[Lisp]: https://en.wikipedia.org/wiki/Lisp_(programming_language)\n[M-expression]: https://en.wikipedia.org/wiki/M-expression\n[CMake]: https://www.cmake.org\n[REPL]: https://en.wikipedia.org/wiki/Read%E2%80%93eval%E2%80%93print_loop\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraulil%2Fbali","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraulil%2Fbali","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraulil%2Fbali/lists"}