{"id":23192902,"url":"https://github.com/dr-42/synthex-lang","last_synced_at":"2026-02-17T22:01:38.379Z","repository":{"id":182284701,"uuid":"667866907","full_name":"Dr-42/synthex-lang","owner":"Dr-42","description":"A rust style systems language which is closer to C","archived":false,"fork":false,"pushed_at":"2025-08-06T16:59:48.000Z","size":176,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-26T07:57:49.180Z","etag":null,"topics":["c","language","llvm","low-level","system"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Dr-42.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-07-18T13:31:19.000Z","updated_at":"2025-08-06T16:59:51.000Z","dependencies_parsed_at":"2023-07-19T12:49:05.823Z","dependency_job_id":"7dd720dd-4913-4f92-94d4-5cf1a1a26843","html_url":"https://github.com/Dr-42/synthex-lang","commit_stats":null,"previous_names":["dr-42/synthex-lang"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Dr-42/synthex-lang","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dr-42%2Fsynthex-lang","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dr-42%2Fsynthex-lang/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dr-42%2Fsynthex-lang/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dr-42%2Fsynthex-lang/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Dr-42","download_url":"https://codeload.github.com/Dr-42/synthex-lang/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dr-42%2Fsynthex-lang/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29559961,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-17T21:50:49.831Z","status":"ssl_error","status_checked_at":"2026-02-17T21:46:15.313Z","response_time":100,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["c","language","llvm","low-level","system"],"created_at":"2024-12-18T13:09:36.599Z","updated_at":"2026-02-17T22:01:38.362Z","avatar_url":"https://github.com/Dr-42.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Synthex Programming Language\n\nNote: Synthex is an ongoing project and the language is not yet finished. The information provided here is based on the current state of the language as of 05-08-2023.(dd/mm/yyyy)\nIntroduction\n\nSynthex is a programming language designed to be simple, expressive, and efficient. It draws inspiration from various existing programming languages while introducing some unique features that make it stand out.\n\n## Features\n\n- [x] Rust-like Syntax : Synthex adopts a familiar syntax inspired by the Rust programming language, making it easy for developers with Rust, C, C++, or Java experience to quickly get started.\n- [x] Strong Typing: Synthex is statically and strongly typed, providing the benefit of early error detection and increased program stability.\n- [x] Arrays: Synthex supports arrays, allowing you to work with collections of data efficiently.\n- [x] Conditional Statements: You can use if-else statements for decision-making in your programs.\n- [x] Loops: Synthex provides while loops, enabling repetitive execution of code blocks based on a condition.\n- [ ] For loops\n- [ ] Pointers\n- [ ] Custom types with structs and enums and such\n- [ ] Generic types\n\nSample Program: Rule 110\n\n```synthex\n// rule 110\nfnc print(a : str, ...) : void;\nfnc get_num() : i32;\n\nfnc main() : i32 {\n    print(\"Enter number of rows: \");\n    rows : i32 = get_num();\n\n    arr : [i32; 51];\n    arr_n : [i32; 51];\n\n    // Zero out the arrays\n    ctr : i32 = 0;\n    while (ctr \u003c 51){\n        arr[ctr] = 0;\n        arr_n[ctr] = 0;\n        ctr = ctr + 1;\n    }\n\n    // Set the initial conditions\n    arr[49] = 1;\n\n    idx : i32 = 0;\n    while (idx \u003c rows) {\n        sc : i32 = 1;\n        // Calculate the next row\n        while (sc \u003c 50){\n            if (arr[sc - 1] == 1 \u0026\u0026 arr[sc] == 1 \u0026\u0026 arr[sc + 1] == 1) {\n                arr_n[sc] = 0;\n            } elif (arr[sc - 1] == 1 \u0026\u0026 arr[sc] == 1 \u0026\u0026 arr[sc + 1] == 0){\n                arr_n[sc] = 1;\n            } elif (arr[sc - 1] == 1 \u0026\u0026 arr[sc] == 0 \u0026\u0026 arr[sc + 1] == 1){\n                arr_n[sc] = 1;\n            } elif (arr[sc - 1] == 1 \u0026\u0026 arr[sc] == 0 \u0026\u0026 arr[sc + 1] == 0){\n                arr_n[sc] = 0;\n            } elif (arr[sc - 1] == 0 \u0026\u0026 arr[sc] == 1 \u0026\u0026 arr[sc + 1] == 1){\n                arr_n[sc] = 1;\n            } elif (arr[sc - 1] == 0 \u0026\u0026 arr[sc] == 1 \u0026\u0026 arr[sc + 1] == 0){\n                arr_n[sc] = 1;\n            } elif (arr[sc - 1] == 0 \u0026\u0026 arr[sc] == 0 \u0026\u0026 arr[sc + 1] == 1){\n                arr_n[sc] = 1;\n            } elif (arr[sc - 1] == 0 \u0026\u0026 arr[sc] == 0 \u0026\u0026 arr[sc + 1] == 0){\n                arr_n[sc] = 0;\n            }\n\n            sc = sc + 1;\n        }\n        // Print the row\n        i : i32 = 0;\n        while (i \u003c 50){\n            ch : str;\n            if (arr[i] == 1){\n                ch = \"X\";\n            } elif (arr[i] == 0){\n                ch = \" \";\n            } else {\n                ch = \"*\";\n            }\n            print(ch);\n            i = i + 1;\n        }\n        print(\"%s\", \"\\n\");\n        ir : i32 = 0;\n        while (ir \u003c 50){\n            tm : i32 = arr_n[ir];\n            arr[ir] = tm;\n            ir = ir + 1;\n        }\n        idx = idx + 1;\n    }\n    ret 0;\n}\n```\n\n## Language Status\n\nAs of 05-08-2023.(dd/mm/yyyy), Synthex is still a work in progress. The language is evolving, and new features are being added, while existing ones might undergo changes for improvement.\n\nNote: The sample code provided here may not represent the final syntax or semantics of the language.\n\n## Contributing\n\nI welcome contributions from the community to help shape the future of Synthex. Whether it's fixing bugs, proposing new features, or improving documentation, your efforts are valuable.\n\n\n## Getting Started\n\nAs the language is still in development, there is no stable release available yet. However, you can experiment with the current version.\n\n### Compilng the compiler\n\nClone the repo.\n\nInstall the build tool with cargo\n\n```sh\ncargo install builder_cpp\n```\n\nBuild the project\n\n```sh\nbuilder_cpp -b\n```\n\nCompile the source code to a .ll file with\n\n```sh\nbuilder_cpp -br --bin-args \u003cfilename.syn\u003e\n```\n\nCompile the .ll file with clang\n\n```sh\nclang -o \u003cbin-name\u003e \u003cfilename.syn.ll\u003e\n```\n\nIf you want to include external functions from a C source code, just define the functions in the C file and compile them to a .o file and pass them to the link phase.\n\nFor example, in the above example, the print and get_num functions are imported from C.\n\nTo try out the example code :\n\nCreate functions.c file\n```c\n#include \u003cstdarg.h\u003e\n#include \u003cstdio.h\u003e\n\n// Wrapper around printf\nvoid print(const char *fmt, ...) {\n    va_list args;\n    va_start(args, fmt);\n    int result = vprintf(fmt, args);\n    va_end(args);\n}\n\nint get_num() {\n    int num;\n    scanf(\"%d\", \u0026num);\n    return num;\n}\n```\n\nCompile and link\n\n```sh\nclang -c -o functions.o functions.c\nbuilder_cpp -r --bin-args rule110.syn\nclang -o app functions.o rule110.syn.ll\n./app\n```\n\n## Community\n\nJoin our friendly community of developers and language enthusiasts on Discord to discuss ideas, ask questions, and get updates on the progress of Synthex.\n\n## License\n\nSynthex is released under the BSD 2 clause License, granting developers the freedom to use, modify, and distribute the language under certain conditions. Please refer to the license file for more details.\n\n## Acknowledgments\n\nI would like to express our gratitude to the developers of the programming languages that served as inspirations for Synthex, as well as the broader open-source community for their valuable contributions to the field of programming language development.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdr-42%2Fsynthex-lang","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdr-42%2Fsynthex-lang","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdr-42%2Fsynthex-lang/lists"}