{"id":16984689,"url":"https://github.com/not-nik/hue","last_synced_at":"2025-03-22T01:19:30.620Z","repository":{"id":104028887,"uuid":"274657265","full_name":"Not-Nik/HUE","owner":"Not-Nik","description":"A lisp-like that can fit into your pocket","archived":false,"fork":false,"pushed_at":"2020-10-25T21:45:57.000Z","size":67,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-18T05:08:57.082Z","etag":null,"topics":["language","lisp","lisp-dialect","lisp-like","programming","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/Not-Nik.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":"2020-06-24T11:57:00.000Z","updated_at":"2021-04-08T12:36:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"87e276cd-d161-435d-8396-9e3756deb467","html_url":"https://github.com/Not-Nik/HUE","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Not-Nik%2FHUE","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Not-Nik%2FHUE/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Not-Nik%2FHUE/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Not-Nik%2FHUE/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Not-Nik","download_url":"https://codeload.github.com/Not-Nik/HUE/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244890499,"owners_count":20527110,"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":["language","lisp","lisp-dialect","lisp-like","programming","programming-language"],"created_at":"2024-10-14T02:33:34.977Z","updated_at":"2025-03-22T01:19:30.596Z","avatar_url":"https://github.com/Not-Nik.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hue\nA lisp-like that can fit into your pocket\n\n## Example\n```lisp\n(do int\n    (puts \"Hello there\")\n    (int i)\n    (set i (add 1 2 3))\n    (if i (do void\n        (puts \"If works\")\n    ))\n    (return i) ; Return i\n)\n```\nNote: the print function is not provided anywhere. It is assumed that the programmer added it after code generation.\n\n## Why\nChoose Hue because:\n* smol: Written less than 200 lines of C++-code\n* sped: Generates C-code, the fastest in the universe\n* strong, independent: By default code generated by Hue does not have any library dependencies. It can always call C-functions tho.\n* familiar errors: As long as you follow basic syntax rules, Hue won't send you any errors. But your C-compiler will.\n\n![smol](https://github.com/Not-Nik/HUE/blob/master/mm.jpg)  \n\n## Syntax specifics\nHUE statements are written like so:\n`(\u003cstatement name\u003e \u003cstatement arguments)`\nArguments can be more statements or simply primitives.\nPrimitives are how you know them already: Numbers and strings:\n* `0`\n* `42`\n* `36.3636`\n* `\"This is a string\"\"`\n\n## Lambdas\nSimilarly to lisp, HUE features lambdas. They are created with the `do` statement and can return a value using the return statement.\nThese lambdas can be used anywhere including in `if` and `while` conditions and variable assignments. They can contain any instruction\nlike a loop or even another lambda.\nAlso they are the only feature HUE has that C doesn't.\n\n## Hacking HUE\nIf you want to add custom code generation to HUE simply do so by adding an overruling for a specific statement name.\nAn overruling is a function that takes an expression of type `Expr` and returns a string of type `std::string`. If you fell the urge\nto generate code that shouldn't be directly in-place like functions or structs, simply add a string to `functions`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnot-nik%2Fhue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnot-nik%2Fhue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnot-nik%2Fhue/lists"}