{"id":18681289,"url":"https://github.com/green726/swo","last_synced_at":"2026-04-29T01:02:43.875Z","repository":{"id":38043546,"uuid":"481417551","full_name":"green726/SWO","owner":"green726","description":"SWO Wants Options | SWO Is A Compiled Language","archived":false,"fork":false,"pushed_at":"2024-05-12T04:42:08.000Z","size":214826,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-29T22:04:19.909Z","etag":null,"topics":["compiler","language","llvm","programming","programming-language"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/green726.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2022-04-14T00:43:08.000Z","updated_at":"2024-05-12T04:42:12.000Z","dependencies_parsed_at":"2024-05-12T05:27:37.437Z","dependency_job_id":null,"html_url":"https://github.com/green726/SWO","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/green726/SWO","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/green726%2FSWO","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/green726%2FSWO/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/green726%2FSWO/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/green726%2FSWO/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/green726","download_url":"https://codeload.github.com/green726/SWO/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/green726%2FSWO/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32405904,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T19:38:08.556Z","status":"ssl_error","status_checked_at":"2026-04-28T19:37:55.688Z","response_time":56,"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":["compiler","language","llvm","programming","programming-language"],"created_at":"2024-11-07T10:06:47.836Z","updated_at":"2026-04-29T01:02:43.853Z","avatar_url":"https://github.com/green726.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SWO\n\n# About:\n\n\u003caside\u003e\nℹ️ SWO is a general purpose low-level compiled programming language. The language is designed to be as customizable / configurable as possible through the use of a simple Toml file.\n\n\u003c/aside\u003e\n\n### Philosophy:\n\n- Be (easily) customizable without requiring users to write code\n- Maintain decent speed/performance in the compiler\n- Maintain speed in the language\n- Have a good FFI (Foreign Function Interface) / Interoperability with C (and maybe C++)\n\n### Why?\n\nWhy does SWO exist? I created SWO as a fun project to learn about compilers. \n\n### How?\n\nSWO is written in C# and uses a custom built parser. SWO uses the LLVMSharp C# LLVM bindings to translate the SWO code into LLVM Intermediary Representation (IR). This is then compiled (by LLVM) to native executables and/or binaries on a vareity of platforms. LLVM is used by various major languages including (but not limited to) C, C++, Rust, Haskell, Julia, Swift. \n\n### A quick peek:\n\n```c\nint @fibRec(int n) {\n    if (n == 1) {\n        return n\n    }\n    if (n == 0) {\n        return n\n    }\n    return fibRec(n - 1) + fibRec(n - 2)\n}\n\n@main() {\n    printf(\"%d\", fibRec(4))\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgreen726%2Fswo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgreen726%2Fswo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgreen726%2Fswo/lists"}