{"id":22337689,"url":"https://github.com/scriptlinestudios/chai","last_synced_at":"2025-06-27T00:38:13.019Z","repository":{"id":63297793,"uuid":"551465485","full_name":"ScriptLineStudios/Chai","owner":"ScriptLineStudios","description":"Compiler for the Chai programming language.","archived":false,"fork":false,"pushed_at":"2023-01-29T18:53:09.000Z","size":1153,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-04T20:34:53.638Z","etag":null,"topics":["compiler","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/ScriptLineStudios.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}},"created_at":"2022-10-14T13:00:24.000Z","updated_at":"2023-03-24T05:41:05.000Z","dependencies_parsed_at":"2023-02-04T10:32:02.932Z","dependency_job_id":null,"html_url":"https://github.com/ScriptLineStudios/Chai","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ScriptLineStudios/Chai","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScriptLineStudios%2FChai","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScriptLineStudios%2FChai/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScriptLineStudios%2FChai/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScriptLineStudios%2FChai/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ScriptLineStudios","download_url":"https://codeload.github.com/ScriptLineStudios/Chai/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScriptLineStudios%2FChai/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262166520,"owners_count":23269067,"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":["compiler","programming-language"],"created_at":"2024-12-04T06:11:03.176Z","updated_at":"2025-06-27T00:38:12.987Z","avatar_url":"https://github.com/ScriptLineStudios.png","language":"C","readme":"# Chai\n## Currently being rewritten here: https://github.com/ScriptLineStudios/Chai/tree/complete-rewrite\n\nCompiler for the Chai programming language.\nChai is a fast, compiled dynamically typed language.\n\n# Compilation Targets\n\n## In Development\n- Intel x86_64 Linux - Being implemented by ScriptLine\n- Intel x86_64 Windows - Being implmented by MousieDev\n\n## Planned\n- WASM\n\n# Getting Started\n```\n1. git clone https://github.com/ScriptLineStudios/Untitled-Compiler\n2. make\n3. ./bin/comp.exe examples/strings.uc\n```\n\n# Language Reference\n\n## Variables\n```rust\nlet int_var = 10;\nlet string_var = \"Hello World\";\n```\n\n## Printing to standard output\n```rust\nlet var = \"Hello, World!\";\nstdout(var);\n```\n\n## If statements\n```rust\nlet x = 7;\nif (x != 8) {\n    stdout(90);\n}\n```\n\n## While loops\n```rust\nlet foo = 0;\nwhile (foo != 100) {\n    stdout(foo);\n    foo = foo + 1;\n}\n```\n\n## Lists\n```rust\nlet lst = [1, 2, 3, 4, 5];\nlet i = 0;\nwhile (i != 5) {\n    stdout(lst[i]);\n    i = i + 1;\n}\n```\n\n## Functions\n```rust\nfunc foo(bar) {\n    if (bar != 200) {\n        stdout(\"The value of bar is not 200!\");\n    }\n}\n\nfoo(201);\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscriptlinestudios%2Fchai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscriptlinestudios%2Fchai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscriptlinestudios%2Fchai/lists"}