{"id":24452557,"url":"https://github.com/i3abghany/kyoto","last_synced_at":"2026-05-18T22:15:32.011Z","repository":{"id":270165860,"uuid":"909517280","full_name":"i3abghany/kyoto","owner":"i3abghany","description":"The Kyoto Programming Language and its compiler, Cyoto","archived":false,"fork":false,"pushed_at":"2025-03-06T22:23:19.000Z","size":928,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-06T23:24:31.553Z","etag":null,"topics":["antlr4","boost","compiler","llvm","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/i3abghany.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-12-29T00:01:24.000Z","updated_at":"2025-03-06T22:23:23.000Z","dependencies_parsed_at":"2025-01-28T02:33:34.743Z","dependency_job_id":"353f1c6b-1068-4711-9b78-69e63aa4c2b7","html_url":"https://github.com/i3abghany/kyoto","commit_stats":null,"previous_names":["i3abghany/kyoto"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/i3abghany%2Fkyoto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/i3abghany%2Fkyoto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/i3abghany%2Fkyoto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/i3abghany%2Fkyoto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/i3abghany","download_url":"https://codeload.github.com/i3abghany/kyoto/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243534042,"owners_count":20306451,"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":["antlr4","boost","compiler","llvm","programming-language"],"created_at":"2025-01-21T01:15:47.220Z","updated_at":"2026-05-18T22:15:32.000Z","avatar_url":"https://github.com/i3abghany.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1\u003e\u003cimg src=\"kyoto.svg\" alt=\"Kyoto logo\" height=\"50\" valign=\"middle\"\u003e Kyoto\u003c/h1\u003e\n\nThis is the repository for the Kyoto Programming Language and its compiler, Cyoto. Kyoto is a statically typed, compiled language that is still in early design stages. The compiler is written in C++ and utilizes LLVM for analysis and code generation.\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"./examples/qs.png\" alt=\"Kyoto Quicksort Example\"\u003e\n\u003c/p\u003e\n\n## Building\n\nCyoto requires the following dependencies:\n\n- LLVM \u003e= 20\n- CMake \u003e= 3.20\n- Java \u003e= 8\n- antlr == 4.13.2\n- Boost \u003e= 1.74.0\n- GCC \u003e= 13 (for C++23 and std::fmt support)\n\nTo install the dependencies on Ubuntu, run the following commands:\n\n```bash\n$ sudo apt-get install llvm-20-dev cmake default-jre libboost-all-dev gcc-13 g++-13 libfmt-dev libzstd-dev\n```\n\nAntlr 4.13.2 can be installed from the official website's mirror as follows:\n\n```bash\n$ export REPO_TOP_LEVEL=`git rev-parse --show-toplevel`\n$ mkdir -p $REPO_TOP_LEVEL/thirdparty\n$ wget https://www.antlr.org/download/antlr-4.13.2-complete.jar -O $REPO_TOP_LEVEL/thirdparty/antlr-4.13.2-complete.jar\n$ chmod +x $REPO_TOP_LEVEL/thirdparty/antlr-4.13.2-complete.jar\n$ export PATH=\"$REPO_TOP_LEVEL/thirdparty:$PATH\"\n```\n\nIf llvm-20 is not available in the package manager, it can be installed using the script provided on the official website as follows:\n\n```bash\n$ wget https://apt.llvm.org/llvm.sh\n$ chmod +x llvm.sh\n$ sudo ./llvm.sh 20 all\n```\n\nTo build the compiler, run the following commands:\n\n```bash\n$ mkdir build\n$ cd build\n$ cmake .. -DCMAKE_CXX_COMPILER=g++-13 -DCMAKE_C_COMPILER=gcc-13\n$ make cyoto -j$(nproc)\n```\n\n### Running Tests\n\nTo run the tests, you can use the following command:\n\n```bash\n$ make ktest -j$(nproc) \u0026\u0026 ./ktest\n```\n\n## Usage\n\nTo compile a Kyoto source file, run the following command:\n\n```bash\n$ ./cyoto --help\n\nUsage: ./cyoto [OPTIONS] INPUT_FILE\nThe Kyoto Programming Language Compiler:\n  -h [ --help ]                 Print this help message\n  -r [ --run ]                  Run the program in `lli` after compilation\n  -o [ --output ] arg (=a.out) Output file for the executable binary\n```\n\n## Fuzzing the Compiler\n\nThis repository includes a grammar-based fuzzer for the Cyoto compiler, which is based on the ANTLR4 grammar for Kyoto defined in `kyoto/grammar/`.\nThe fuzzer is written in Rust. For more information on how to use it, refer to the [README](fuzzer/README.md) in the `fuzzer` directory.\n\n# License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fi3abghany%2Fkyoto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fi3abghany%2Fkyoto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fi3abghany%2Fkyoto/lists"}