{"id":16831913,"url":"https://github.com/manorajesh/laspa","last_synced_at":"2026-04-16T18:33:38.866Z","repository":{"id":187766476,"uuid":"677531614","full_name":"manorajesh/laspa","owner":"manorajesh","description":"Lisp-like Language with LLVM Backend","archived":false,"fork":false,"pushed_at":"2023-08-29T22:51:10.000Z","size":3643,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-27T01:52:33.730Z","etag":null,"topics":["lisp","llvm","programming-language","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/manorajesh.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":"2023-08-11T20:23:59.000Z","updated_at":"2024-12-11T00:25:41.000Z","dependencies_parsed_at":"2024-11-24T05:23:58.194Z","dependency_job_id":"6b45abe8-b75b-4fa8-a987-5cee022867ed","html_url":"https://github.com/manorajesh/laspa","commit_stats":null,"previous_names":["manorajesh/laspa"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/manorajesh/laspa","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manorajesh%2Flaspa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manorajesh%2Flaspa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manorajesh%2Flaspa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manorajesh%2Flaspa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/manorajesh","download_url":"https://codeload.github.com/manorajesh/laspa/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manorajesh%2Flaspa/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267804051,"owners_count":24146529,"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-07-30T02:00:09.044Z","response_time":70,"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":["lisp","llvm","programming-language","rust"],"created_at":"2024-10-13T11:46:55.041Z","updated_at":"2026-04-16T18:33:33.807Z","avatar_url":"https://github.com/manorajesh.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# läspa\n![Build Status](https://github.com/manorajesh/laspa/actions/workflows/rust.yml/badge.svg)\n[![codecov](https://codecov.io/gh/manorajesh/laspa/branch/master/graph/badge.svg?token=2CN1LLRK4P)](https://codecov.io/gh/manorajesh/laspa)\n![Downloads](https://img.shields.io/crates/d/laspa)\n![Version](https://img.shields.io/crates/v/laspa)\n![License](https://img.shields.io/crates/l/laspa)\n\nA toy language I designed to be as easy as possible to implement. \nReminiscent of [lisp](https://en.wikipedia.org/wiki/Lisp_(programming_language)), \nläspa uses [Reverse Polish Notation](https://en.wikipedia.org/wiki/Reverse_Polish_notation) \nfor basic arithmetic and for function calls. With a basic interpreter implemented and\n[LLVM](https://llvm.org/docs/LangRef.html#type-system) executables, I plan to implement\na machine-code generation component, without using the LLVM toolchain.\n\n## Installation\n```shell\ncargo install laspa\n```\n\nYou will need the llvm toolchain to build the executable. Clang is also used for linking.\n```shell\nbrew install llvm \u0026\u0026 export LLVM_SYS_160_PREFIX='/usr/local/opt/llvm@16'\n```\n\n## Usage\nSee [this test file](https://github.com/manorajesh/laspa/blob/master/examples/test.laspa) for example syntax.\n```\nA simple Lisp-like language built with Rust\n\nUsage: laspa [OPTIONS] \u003cFILE\u003e\n\nArguments:\n  \u003cFILE\u003e  The file to build\n\nOptions:\n  -O, --optimization-level \u003cOPTIMIZATION_LEVEL\u003e  Optimization level for the compiler [default: 1]\n  -i, --interpret                                Interpret the file\n  -v, --verbose...                               Verbose output\n  -o, --executable-name \u003cEXECUTABLE_NAME\u003e        Executable name [default: main]\n      --jit                                      Execute IR with JIT\n  -h, --help                                     Print help (see more with '--help')\n  -V, --version                                  Print version\n  ```\n\n## Why\nI was reading an [article](https://mhdm.dev/posts/sb_lower_bound/) on the fastest implementation of a binary search algorithm.\nI saw `llvm` and thought to myself: \"Hmm, wouldn't it be interesting to make a language.\" The rest is history.\n\n\n#### Important Code\nThe `lex`, `parse`, and `eval` functions are the meat of the execution of the language. Those familiar with language\ndevelopment will recognize those names. `llvm.rs` is crucial to generating and compiling the IR for LLVM executations.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanorajesh%2Flaspa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmanorajesh%2Flaspa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanorajesh%2Flaspa/lists"}