{"id":15059999,"url":"https://github.com/vardan2009/kitelang","last_synced_at":"2026-02-28T07:04:50.119Z","repository":{"id":255808685,"uuid":"850658941","full_name":"Vardan2009/kitelang","owner":"Vardan2009","description":"hobby programming language compiler written in C++","archived":false,"fork":false,"pushed_at":"2024-10-24T20:14:55.000Z","size":146,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-24T21:31:31.188Z","etag":null,"topics":["assembly","cmake","compiler","compilers","cpp","lowlevel","programming-language","x86","x86-64"],"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/Vardan2009.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":"2024-09-01T12:21:01.000Z","updated_at":"2024-10-24T20:14:59.000Z","dependencies_parsed_at":"2024-10-24T07:13:46.594Z","dependency_job_id":"1d0ab19d-1f58-46cf-a192-5347db9c0431","html_url":"https://github.com/Vardan2009/kitelang","commit_stats":null,"previous_names":["vardan2009/kitelang"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vardan2009%2Fkitelang","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vardan2009%2Fkitelang/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vardan2009%2Fkitelang/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vardan2009%2Fkitelang/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Vardan2009","download_url":"https://codeload.github.com/Vardan2009/kitelang/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248166742,"owners_count":21058479,"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":["assembly","cmake","compiler","compilers","cpp","lowlevel","programming-language","x86","x86-64"],"created_at":"2024-09-24T22:51:02.126Z","updated_at":"2026-02-28T07:04:50.078Z","avatar_url":"https://github.com/Vardan2009.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kite Programming Language\nKite is a very simple low-level programming language.\\\nIt provides direct access to memory and hardware with pointers and registers, allowing for system-level programming with minimal abstraction.\\\nThis repository contains a simple compiler for it written in C++ that generates 64bit x86 ELF assembly (tested with NASM 2.15.05 on Linux x86_64)\n\n## Showcase\n- Hello World!\n```\n#include \u003cstdio.km\u003e\n\nglobal _start\nfn _start() : byte {\n\tprint(\"Hello, World!\")\n\treturn 0\n}\n```\n- Variables (and basic arithmetic)\n```\n#include \u003cstdio.km\u003e\n\nglobal _start\nfn _start() : byte {\n\tlet x : byte = 9\n\tlet y : byte = 10\n\n\tprint(\"x: \")\n\tprinti(x)\n\tprintc('\\n')\n\n\tprint(\"y: \")\n\tprinti(y)\n\tprintc('\\n')\n\n\tprint(\"x + y: \")\n  \tprinti(x + y)\n  \tprintc('\\n')\n\n  \treturn 0\n}\n```\n- Functions\n```\n#include \u003cstdio.km\u003e\n\nglobal _start\nfn _start() : byte {\n\tprinti(factor(10, 5))\n\treturn 0\n}\n\nfn factor(a : int64, b : int64) : int64 {\n\treturn a * b\n}\n```\n- Pointers\n```\n#include \u003cstdio.km\u003e\n\nglobal _start\nfn _start() : byte {\n\tlet value : byte = 20\n\tlet vptr : ptr8 = \u0026value\n\n  \tprint(\"The Value: \")\n  \tprinti(value)\n  \tprintc('\\n')\n\n  \tprint(\"The Address: \")\n  \tprinti(vptr)\n  \tprintc('\\n')\n\n  \tprint(\"Dereferenced Pointer Value: \")\n  \tprinti(*vptr)\n  \tprintc('\\n')\n  \treturn 0\n}\n```\n- User Input\n```\n#include \u003cstdio.km\u003e\n\nglobal _start\nfn _start() : byte {\n\t; allocate space for input reading\n\tlet buf : char[512]\n\t; read line into buffer\n\treadln(buf, 512)\n\n\treturn 0\n}\n```\n- File Operations\n```\n#include \u003cfilesystem.km\u003e\n#include \u003cstdio.km\u003e\n\nglobal _start\nfn _start() : byte {\n\t; Open file and get file descriptor\n\tlet fd : int64 = fopen(\"/test.txt\")\n\n\t; if file descriptor is invalid\n\tif fd \u003c 0 {\n\t\tprint(\"Failed to open file!\\n\")\n\t\treturn 1\n\t}\n\t\n\t; allocate space for file reading\n\tlet buf : char[2048]\n\n\t; read into buffer\n\treadfd(fd, buf, 2048)\n\n\t; print the buffer\n\tprint(buf)\n\n\t; close the file\n\tfclose(fd)\n\n\treturn 0\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvardan2009%2Fkitelang","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvardan2009%2Fkitelang","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvardan2009%2Fkitelang/lists"}