{"id":25422506,"url":"https://github.com/vextroyer/hulki","last_synced_at":"2025-05-13T20:36:41.027Z","repository":{"id":192294405,"uuid":"682811605","full_name":"Vextroyer/Hulki","owner":"Vextroyer","description":"A HULK interpreter written in C#","archived":false,"fork":false,"pushed_at":"2023-10-16T18:23:40.000Z","size":556,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-13T20:35:56.879Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/Vextroyer.png","metadata":{"files":{"readme":"Readme.txt","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,"zenodo":null}},"created_at":"2023-08-25T00:36:20.000Z","updated_at":"2023-09-02T20:39:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"a50e219b-42a6-440f-baca-5c43afcdb5e9","html_url":"https://github.com/Vextroyer/Hulki","commit_stats":null,"previous_names":["vextroyer/hulki"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vextroyer%2FHulki","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vextroyer%2FHulki/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vextroyer%2FHulki/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vextroyer%2FHulki/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Vextroyer","download_url":"https://codeload.github.com/Vextroyer/Hulki/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254021723,"owners_count":22000982,"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":[],"created_at":"2025-02-16T21:34:09.900Z","updated_at":"2025-05-13T20:36:41.006Z","avatar_url":"https://github.com/Vextroyer.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"Hulki is a Hulk interpreter.\r\n\r\nHulk is a programming language created at Habana University for\r\neducational purposes. You can learn more about it at\r\nhttps://matcom.in/hulk\r\n\r\nThis version of the interpreter offers support for one line expressions, wich I like to call Hulk one-liners.\r\n\r\nAs you may read on the specifications of the language (almost)everything in Hulk is an expression and thus has a return value.\r\n\r\nThis interpreter support inline functions(can be written on one line) and recursion.\r\n\r\nFunction declaration is a type of expression that dont return a value.\r\n\r\nAn example of a recursive function for computing the factorial of a non-negative integer:\r\nDeclaration:\r\n\tfunction Factorial(integer) =\u003e if(integer == 0) 1 else integer * Factorial(integer - 1);\r\nUsage:\r\n\tFactorial(5);\r\nWhich yields 120.\r\n\r\nRedeclaration of a function is not allowed in this version of the interpreter, but you can modify the source code\r\nto support it, its just uncommenting some lines and commenting others.\r\n\r\nBesides functions Hulki supports :\r\n\t-numbers, all numbers are considered real numbers.\r\n\t-strings, with the escaped characters '\\t' for tabs, '\\n' for newlines and '\\\"' for quotes.\r\n\t-Unary operators(! -), for logic negation and negative sign.\r\n\t-Real number arithmetic (+ - * / % ^), with the caret(^) for exponentiation.\r\n\t-String concatenation (@), \"alpha\"@\"bet\"; yields \"alphabet\".\r\n\t-Relations (\u003c \u003c= \u003e \u003e= != ==), as usual.\r\n\t-Logic operators (\u0026 |)a, for 'logical and' and 'logical or', without shortcircuit.\r\n\t-Conditional expressions of the form 'if(condition) expression1 else expression2' where condition must evaluate\r\n\tto a boolean value (true or false).\r\n\t-Declarations of variables on the form 'let assignments in expression' where assignments is a non empty list of comma(,)\r\n\tseparated assignments. An assignment is of the form 'variableName = expression'.After the in keyword the variables can be used.\r\n\tFor example 'let x = 5, y = -5 in cos(x + y)' yields 1.\r\n\t-Native functions : rand(), sin(number), cos(number), exp(number), sqrt(number), log(base,value), print(x)\r\n\t-Builtin-constants : E for Euler constant and PI for pi constant.\r\n\r\n\r\nTo run the interpreter use the Hulk.sh script.\r\nA script for Windows will be added soon.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvextroyer%2Fhulki","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvextroyer%2Fhulki","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvextroyer%2Fhulki/lists"}