{"id":19258839,"url":"https://github.com/lucascompython/critlang","last_synced_at":"2025-08-25T20:06:51.640Z","repository":{"id":40050351,"uuid":"507337239","full_name":"lucascompython/CritLang","owner":"lucascompython","description":"Crit is an interpreted dynamic programming language made with C# and ANTLR4.","archived":false,"fork":false,"pushed_at":"2023-11-23T23:47:06.000Z","size":3134,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-01T14:21:04.691Z","etag":null,"topics":["antlr4","csharp","interpreter","language","programming-language"],"latest_commit_sha":null,"homepage":"https://github.com/lucascompython/CritLang/wiki/Language-Defenition","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lucascompython.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.MD","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}},"created_at":"2022-06-25T14:47:03.000Z","updated_at":"2024-11-29T20:27:08.000Z","dependencies_parsed_at":"2023-11-24T00:27:55.844Z","dependency_job_id":"9b9dcc4b-fe3e-493e-af2c-f53dfd41dae1","html_url":"https://github.com/lucascompython/CritLang","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucascompython%2FCritLang","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucascompython%2FCritLang/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucascompython%2FCritLang/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lucascompython%2FCritLang/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lucascompython","download_url":"https://codeload.github.com/lucascompython/CritLang/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250090622,"owners_count":21373220,"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","csharp","interpreter","language","programming-language"],"created_at":"2024-11-09T19:14:32.562Z","updated_at":"2025-04-21T16:30:35.109Z","avatar_url":"https://github.com/lucascompython.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Crit (the programming language)\n\n## What is Crit?\n\nCrit is an interpreted dynamic programming language made with C# and [ANTLR4](https://www.antlr.org/).  \nThis language is still very experimental and is no were to be used for production.  \nWhy the name? Because in League of Legends, **no crit = no bitches**.  \n\nThe language is [turing complete](https://en.wikipedia.org/wiki/Turing_completeness) (I think) so theoretically you can solve any computational problem with Crit!  \n\nThe syntax is somewhat similar to Golang's syntax.  \nCheck the Change log [here](CHANGELOG.MD).\n\n## Code Preview\n\n```rust\nnum = 5;\n#Comment\nif num \u003e 2 {\n    Write(num + \" is bigger than 2.\");\n} #else if work as expected\nelse {\n    WriteLine(num + \" is smaller than 2.\");\n}\n\nwhile num \u003c 10 { \n    WriteLine(num);\n    num = num + 1;\n}\nelse {\n    WriteLine(\"num was already bigger than 10.\");\n}\n```\n\nYou can look [here](https://github.com/lucascompython/CritLang/tree/master/Examples) for more an implemantion of the [Sieve of Eratosthenes](https://en.wikipedia.org/wiki/Sieve_of_Eratosthenes) in crit!\n\n## Documentation\n\nCheck [here](https://github.com/lucascompython/CritLang/wiki/Language-Defenition) for the language definition.\n\n## Tips and Tricks\n\nYou can have a else block after a while loop declaration to avoid a if statement.  \nTo have syntax highlighting you can set the language to Golang or Rust, I've tested both and they look fine to me.  \nThis language also has a `until` keyword, which is just like the `while` keyword but with the opposite condition.\n\n```rust\nuntil num \u003e 10 {\n    WriteLine(num);\n    num = num + 1;\n}\n```\n\n## Run It\nDownload the binary [here](https://github.com/lucascompython/CritLang/tags).  \nOR  \nBuild it\n```powershell\ngit clone https://github.com/lucascompython/CritLang.git\ncd CritLang/CritLang\n./build.ps1 -help\n```\n\n## TODOs\n\n- [X] Documentation.\n- [X] Automatically detect the length of a number and assign to it the corret type (int, long, float and double)\n- [X] Add Python like dictionaries.\n- [ ] Integrate [NANQL](https://github.com/lucascompython/NANQL) with Crit's dictionaries and arrays.\n- [ ] Add the hability of making functions.\n- [ ] Seperate code into different files.\n- [ ] Add Crit's own types \u0026 remove most object types.\n- [ ] Add the hability of importing other files.\n- [ ] Add interactive mode (with a REPL).\n- [ ] Make a proper std lib.\n- [ ] Add for loops.\n- [ ] Add a proper break keyword.\n- [ ] Add readable error messages.\n- [ ] Optimizing the interpreter.\n- [ ] Make a compiler.\n\n\u003c!--## How to get it\n\nYou can get it from just cloning this repository and then running it (`dotnet run`).\u003cbr /\u003e\nOr you can clone this repository and then install it globally as a dotnet package (`./install_globally.ps1`) and then just use `crit`.\u003cbr /\u003e\nOr download the executable [here](https://github.com/lucascompython/CritLang/releases) and then you can just use that file.--\u003e\n\n## Contributions\n\nPlease feel free to help.  \nAll help is appreciated!\n\n## Known Bugs\n\nRight now you can't use arrays inside arrays nor inside dictionaries and vice versa. This will be fixed in the next update.\n\n## License\n\nThis project is licensed under the GPL3 license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucascompython%2Fcritlang","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flucascompython%2Fcritlang","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flucascompython%2Fcritlang/lists"}